Skip to content

Commit

Permalink
ci: make trivy ignore the spread directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bepri committed Jan 30, 2025
1 parent f2dfe73 commit 4f48911
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ jobs:
python-scans:
name: Security scan
uses: canonical/starflow/.github/workflows/scan-python.yaml@main
with:
# 1. requirements-noble.txt can't build on jammy
# 2. Ignore requirements files in spread tests, as some of these intentionally
# contain vulnerable versions.
# 3. Docs contain requirements.txt files that don't specify versions.
requirements-find-args: '! -name requirements-noble.txt ! -path "./tests/spread*" ! -path "./docs/**"'
trivy-extra-args: "--severity HIGH,CRITICAL --ignore-unfixed --skip-dirs tests/spread/"

0 comments on commit 4f48911

Please sign in to comment.