Add a permissions block to linkcheck.yml, matching the other workflows - #55
Merged
Conversation
Completes the hardening #54 landed for ci, collab and publish: the dawidd6 cache download works today via public-repo API leniency, but granting actions: read explicitly matches the documented requirement and the blocks the other workflows now carry. Raised by Copilot on the superseded #53. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for timely-seahorse-68815c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR hardens the GitHub Actions linkcheck.yml workflow by adding an explicit job-level permissions block, aligning it with the repository’s other workflows that interact with the Actions API.
Changes:
- Adds an explicit
permissions:block tolinkcheck.ymlgrantingcontents: readandactions: read. - Documents (inline) why
actions: readis required for downloading thecache.ymlartifact viadawidd6/action-download-artifact.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Completes the permissions hardening #54 landed for
ci,collabandpublish—linkcheck.ymlis the one remaining workflow usingdawidd6/action-download-artifactwithout an explicit block. The download works today via public-repo API leniency (the same mechanism the sibling repos' ci workflows rely on), so this is consistency hardening rather than a live fix:contents: read+actions: read, with the same comment the other blocks carry.Raised by Copilot's review on the superseded #53 (its other two comments were addressed by #54's consolidated blocks). With this merged, every workflow in the repo that touches the Actions API carries an explicit grant, and the repo-level token default can drop to read with nothing relying on leniency.
🤖 Generated with Claude Code