Skip to content

Commit dd6c057

Browse files
ci: fix dep-audit grep pattern + add sigstore-models to license skip list
- dep-audit: grep -iv '^aiir' to match both 'aiir==1.1.0' and 'aiir @ file://...' forms from pip freeze - license-check: add sigstore-models to SKIP_PACKAGES (metadata reports UNKNOWN but package is actually Apache-2.0)
1 parent f122d59 commit dd6c057

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/security.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ jobs:
150150
# --strict = fail on ANY known vulnerability
151151
# --desc = include vulnerability descriptions in output
152152
# Generate a requirements file of all installed packages,
153-
# excluding aiir itself (not on PyPI, would cause --strict error)
154-
pip freeze | grep -iv '^aiir==' > _audit_reqs.txt
153+
# excluding aiir itself (not on PyPI, would cause --strict error).
154+
# pip freeze may emit 'aiir==1.1.0' or 'aiir @ file://...' forms.
155+
pip freeze | grep -iv '^aiir' > _audit_reqs.txt
155156
pip-audit --strict --desc -r _audit_reqs.txt --format json --output pip-audit-report.json || true
156157
pip-audit --strict --desc -r _audit_reqs.txt
157158
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0

scripts/check_licenses.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
"HPND", # Historical Permission Notice and Disclaimer
3030
]
3131

32-
# Packages to skip (e.g. the project itself, installed as editable)
33-
SKIP_PACKAGES: set[str] = {"aiir"}
32+
# Packages to skip (e.g. the project itself, or packages whose metadata
33+
# reports UNKNOWN but are verified Apache-2.0 / MIT upstream)
34+
SKIP_PACKAGES: set[str] = {"aiir", "sigstore-models"}
3435

3536

3637
def main() -> int:

0 commit comments

Comments
 (0)