ci: pin GitHub Actions and audit dependencies - #38
Draft
trionnemesis wants to merge 1 commit into
Draft
Conversation
13 tasks
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.
Summary
dependency-auditjob that audits AgentSec's project metadata withpip-auditWhy
This completes the remaining supply-chain hardening work in item 3 of #1. AgentSec is a security tool, so its own CI should not execute mutable action tags and should fail when a known Python dependency vulnerability is introduced.
Reviewed pins
actions/checkout11d5960a326750d5838078e36cf38b85af677262actions/setup-pythona26af69be951a213d495a4c3e4e4022e16d87065actions/upload-artifactea165f8d65b6e75b540449e92b4886f43607fa02actions/configure-pages983d7736d9b0ae728b81ab479565c72886d7745bactions/upload-pages-artifact56afc609e74202658d3ffba0e8f6dda462b719faactions/deploy-pagesd6db90164ac5ed86f2b6aed7e0febac5b3c0c03epypa/gh-action-pip-audit1220774d901786e6f652ae159f7b6bc8fea6d266Security boundaries
pip-auditreceivesinputs: ., so it resolves the checked-out project's runtime metadata rather than auditing unrelated packages preinstalled on the runner.Validation
make checkpytest -q --cov=agentsec --cov-report=term-missing— 80.44% coverage (72% required)pytest -q tests/test_workflows.pypip-audit .— no known vulnerabilities foundRefs #1