-
Notifications
You must be signed in to change notification settings - Fork 729
chore: update pvtr plugin to ossf repo and v0.23.2 IN-986 #4126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
02ba949
e7b33bf
f5e33c8
125d6c7
c84ee25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| UPDATE "securityInsightsEvaluationSuites" | ||
| SET "catalogId" = 'OSPS_B' | ||
| WHERE "catalogId" = 'osps-baseline-2026-02'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| UPDATE "securityInsightsEvaluationSuites" | ||
| SET "catalogId" = 'osps-baseline-2026-02' | ||
| WHERE "catalogId" = 'OSPS_B'; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ services: | |
|
|
||
| policy: | ||
| catalogs: | ||
| - OSPS_B | ||
| - osps-baseline-2026-02 | ||
| applicability: | ||
| - Maturity Level 1 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ export async function saveOSPSBaselineInsightsToDB( | |
| key: string, | ||
| repo: ISecurityInsightsObsoleteRepo, | ||
| ): Promise<void> { | ||
| const CATALOG_ID = 'OSPS_B' | ||
| const CATALOG_ID = 'osps-baseline-2026-02' | ||
|
cursor[bot] marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Save ignores legacy catalog scansMedium Severity
Reviewed by Cursor Bugbot for commit c84ee25. Configure here. |
||
| const redisCache = new RedisCache(`osps-baseline-insights`, svc.redis, svc.log) | ||
| const result = await redisCache.get(key) | ||
| const parsedResult: ISecurityInsightsPrivateerResult = JSON.parse(result) | ||
|
|
@@ -131,6 +131,7 @@ export async function saveOSPSBaselineInsightsToDB( | |
| qx, | ||
| repo.repoUrl, | ||
| evaluation['control-id'], | ||
| suite.id, | ||
| ) | ||
| for (const assessment of evaluation.assessments) { | ||
| await addControlEvaluationAssessment(qx, { | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migration hits unique constraint
High Severity
The catalog rename
UPDATEcan fail when a repo already has asecurityInsightsEvaluationSuitesrow withosps-baseline-2026-02from a rescan on the new worker, while an older row still hasOSPS_B. Renaming the legacy row duplicates(repo, catalogId)and violates the table unique constraint, blocking the migration.Reviewed by Cursor Bugbot for commit 125d6c7. Configure here.