Skip to content

ci(osv): exclude intentionally vulnerable fixtures from scheduled scan - #21

Merged
shuvonsec merged 2 commits into
mainfrom
copilot/fix-scan-scheduled-osv-scan
Sep 16, 2026
Merged

shuvonsec merged 2 commits into
mainfrom
copilot/fix-scan-scheduled-osv-scan

Conversation

Copilot AI commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

scan-scheduled / osv-scan was failing because the scheduled/push OSV run recursively scanned fixtures/, which intentionally contains vulnerable dependency manifests for regression scenarios. This caused the scanner path to fail the job instead of reflecting runtime-code risk.

  • Root cause in workflow behavior

    • scan-scheduled used recursive source scanning over ./, which included fixtures/** and surfaced expected test-fixture vulnerabilities as CI failures.
  • Workflow adjustment

    • Updated .github/workflows/osv-scanner.yml (scan-scheduled job) to exclude fixture directories from OSV source traversal.
    • Kept existing scan scope (-r ./) and fail-on-vuln policy unchanged for non-fixture content.
  • Effective diff

    scan-args: |-
      --experimental-exclude=fixtures
      -r
      ./

Co-authored-by: shuvonsec <83355567+shuvonsec@users.noreply.github.com>
@shuvonsec
shuvonsec marked this pull request as ready for review September 16, 2026 17:02
Copilot AI changed the title [WIP] Fix failing GitHub Actions job scan-scheduled / osv-scan ci(osv): exclude intentionally vulnerable fixtures from scheduled scan Sep 16, 2026
@shuvonsec
shuvonsec merged commit e5f8ac6 into main Sep 16, 2026
10 checks passed
Copilot AI requested a review from shuvonsec September 16, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants