Repository navigation
ci: add pip-audit scan and remediate 25 vulnerable pinned deps - #5
Merged
Franky100-pig merged 2 commits intoOct 25, 2026
Merged
Conversation
Add .github/workflows/security-scan.yml, an independent supply-chain scan that runs pip-audit against the pinned requirements.txt on push, pull_request, a weekly schedule, and manual dispatch. SARIF results are uploaded to the code-scanning dashboard for triage in the Security tab. Kept separate from deploy.yml so the security gate cannot block or break production deploys.
pip-audit flagged 25 known vulnerabilities in 5 packages (Flask, Authlib, python-dotenv, requests, pytest), including Authlib auth-bypass / account-takeover class issues (JWK header injection, CSRF, padding oracle, open redirect, OIDC fail-open). Bump to fixed versions; pin Authlib to newest 1.6.x to stay API-compatible with the OIDC integration instead of jumping to 1.9.x. Also drop the invalid 'upload-sarif' input from security-scan.yml (not a valid input for pypa/gh-action-pip-audit@v1.1.0; it only emitted a warning). Full test suite green on the bumped versions: 127 passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
.github/workflows/security-scan.yml, apip-auditdependencyvulnerability scan (official
pypa/gh-action-pip-audit@v1.1.0) against thepinned
requirements.txt.serious Authlib issues (JWK header injection → forgeable JWTs / auth bypass,
CSRF → account takeover, padding oracle, open redirect, OIDC fail-open) and a
Flask cache-leak. This PR remediates them by bumping the pins to fixed
versions.
Why
deploy.ymlonly ranpytest+pip check— no CVE scanning. As a Flask apphandling auth, sessions, and API keys, Resona must fail CI on known-vulnerable
pins. The scan is now the gate; the version bump is the actual fix.
Dependency fixes
Vary: Cookiecache-leak (PYSEC-2026-2151).envoverwrite (PYSEC-2026-2270)extract_zipped_pathspredictable tmp (PYSEC-2026-2275)/tmp/pytest-of-{user}predictable dir (PYSEC-2026-1845, dev-only)Authlib is pinned to the newest 1.6.x (the security-patch line) to stay
API-compatible with Resona's OIDC integration instead of jumping to 1.9.x.
Verification
deploy.yml(cannot block or break deploys).
summary: truegives an inline report.Note
The earlier
upload-sarifaction input was removed — it is not a valid inputfor
pypa/gh-action-pip-audit@v1.1.0(it only emitted a warning). SARIF uploadto the Security tab can be added later as a separate step if desired.