ci(security): pinned osv-scanner job (closes #91) - #94
Merged
Merged
Conversation
Scan the static tree locally: no lockfiles, so CI/check-all use --allow-no-lockfiles (bare scan source -r . exits 128). Binary 2.6.0 sha256 matches keen-platypus; default branch is main.
set -uo pipefail without -e let a failed sha256sum -c still mv the blob into scripts/.cache. Check the checksum exit code before promote, and cover the mismatch path in test_guardrails.py with a fake curl payload.
check-all runs ruff on tests/; use re.MULTILINE and removesuffix so the local gate stays green after the checksum-fail coverage.
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.
Closes #91
Summary
osv-scanneron.github/workflows/security.yml: binary v2.6.0, sha256ca69b3d3…(same as keen-platypus production job).actions/checkoutstays@11bd7190…(v4.2.2) like the other jobs in this file and KPsecurity.yml— the 2026-09-16 issue comment used a v6 checkout SHA that is not what KP runs today.scripts/check-all.sh(+--skip-osv-scanner), cache underscripts/.cache/(gitignored).osv-scanner scan source -r .→ exit 128 (No package sources found). With--allow-no-lockfiles→ exit 0, no vulns. Static site has no lockfiles; the flag is required or CI stays red. Guardrail test pins the checksum + flag.Test plan
osv-scanner2.6.0 checksum verifybash scripts/check-all.shgreen (includes osv)osv-scannerjob green on this PR (do not close ci(security): dependency-vulnerability scan (osv-scanner) — implementação real disponível no keen-platypus #91 until that is true; merge auto-closes)