Repository navigation
Version the dependency audit action with release tags - #48
Merged
Merged
Conversation
The org CI rule asks every pin to carry a version comment, and Sponge's action supply-chain test rejects the "# main" comment the first rollout used. Repositories now pin the commit of hraness/.github's newest vX.Y.Z tag with that version as the comment, so Dependabot's weekly GitHub Actions update can move every repository to a new release. The sync script also keeps a repository's own actions/checkout pin, taken from its existing audit workflow or its other workflows. A repository that reviews one checkout commit, as Sponge does, gets the same commit instead of a second one. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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
hraness/.github/actions/dependency-audit@<commit> # vX.Y.Z.sync-dependency-audit.pyresolves the newestvX.Y.Ztag of this repository, or--action-version. The previous# maincomment broke the hraness-ci rule that every pin carries a version comment, and failed Sponge's supply-chain test. With tags, each repository's weekly Dependabot update for GitHub Actions moves the pin to a new release.--applykeeps a repository's ownactions/checkoutpin, taken from its existing audit workflow or its other workflows, so repositories that review one checkout commit (Sponge) do not get a second one.--checkalready treats any version-commented checkout pin as current.After merge,
v1.0.0is tagged onmain. The five pilot rollout pull requests and xcb's merged copy are then re-rendered against it.Test plan
python3 -m unittest discover -s testswith PyYAML (109 pass), including version comments on every pin and checkout-pin preservationGenerated with Devin