Skip to content

Commit 0ab0cc2

Browse files
committed
fix(security): exclude example requirements from security scan
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.
1 parent b164b99 commit 0ab0cc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/policy.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
# 1. requirements-noble.txt can't build on jammy
1919
# 2. Ignore requirements files in spread tests, as some of these intentionally
2020
# contain vulnerable versions.
21-
requirements-find-args: '! -name requirements-noble.txt ! -path "./tests/spread/*"'
21+
# 3. Docs contain requirements.txt files that don't specify versions.
22+
requirements-find-args: '! -name requirements-noble.txt ! -path "./tests/spread/*" ! -path "./docs/**"'
2223
osv-extra-args: '--config=source/osv-scanner.toml'
2324
uv-export: false

0 commit comments

Comments
 (0)