Repository navigation
ci(workflows): add a Plumber check for token scopes and locked actions - #5945
Merged
Merged
Conversation
A small workflow runs the Plumber CLI on pull requests and on pushes to master. It checks the workflow files for the classes fixed in codecentric#5928 (token scopes, stored checkout credentials, unpinned images and actions) and fails under 85 points. Its two actions are referenced by version and recorded in actions.lock with a second gh actions-lock run. The .plumber.yaml overlay keeps the default trust list and adds the three third-party actions the docs, release and issue-metrics workflows use. Nothing is published outside the repository.
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.
Hi again. Follows up on #5928, merged earlier.
A workflow runs the Plumber CLI on pull requests and on pushes to
master. It checks the workflow files for what #5928 fixed: missing token scopes, checkouts that keep the job token, images without a digest and actions on movable tags. Today it scores A 100/100.actions: readandsecurity-events: writefor code scanning.actions.lock, Renovate updates them like the others..plumber.yamladds your three third-party actions (Pages deploy, release, issue metrics) to the default trust list.Optional: public score and badge
This PR publishes nothing outside the repository and adds no badge. The score can be published the way OpenSSF Scorecard does and shown as a README badge, with no token or secret. Say so and I add both.
I work on Plumber. If you do not want the tool, no hard feelings, say so and I close this PR, the hardening stands on its own.