Skip to content

Commit

Permalink
fix(security): exclude example requirements from security scan
Browse files Browse the repository at this point in the history
These example files intentionally don't include versions, but that
causes the OSV scanner to treat it as the lowest possible version which
is often insecure.
  • Loading branch information
lengau committed Jan 14, 2025
1 parent ec10da2 commit 9735821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
# 1. requirements-noble.txt can't build on jammy
# 2. Ignore requirements files in spread tests, as some of these intentionally
# contain vulnerable versions.
requirements-find-args: '! -name requirements-noble.txt ! -path "./tests/spread/*"'
# 3. How-tos contain requirements.txt files that don't specify versions.
requirements-find-args: '! -name requirements-noble.txt ! -path "./tests/spread/*" ! -path "./docs/howto/*"'
osv-extra-args: '--config=source/osv-scanner.toml'
uv-export: false

0 comments on commit 9735821

Please sign in to comment.