feat(linter): add workflow permissions analysis with actions-permissions#375
Open
feat(linter): add workflow permissions analysis with actions-permissions#375
Conversation
neilime
requested changes
Oct 9, 2025
Member
neilime
left a comment
There was a problem hiding this comment.
@copilot you can get project instructions here: https://github.com/hoverkraft-tech/ci-github-common/blob/main/AGENTS.md
After reading them, please implement the issue as expected
Contributor
Author
I've successfully implemented the workflow permissions analysis feature as requested in issue #346. Changes made (commits 19d2857 and a2946ea):
The implementation follows GitHub security best practices and integrates seamlessly with the existing linter workflow infrastructure. |
Copilot
AI
changed the title
[WIP] Add workflow permissions analysis with actions-permissions
feat(linter): add workflow permissions analysis with actions-permissions
Oct 9, 2025
19d2857 to
9da456a
Compare
e7e6f10 to
e5a6c71
Compare
1323084 to
b7dd413
Compare
184db82 to
081ec60
Compare
068f1ab to
81e985a
Compare
b7d88a2 to
19889eb
Compare
da7003a to
2fd7031
Compare
1404997 to
d6ce392
Compare
9deee78 to
1513a1f
Compare
1513a1f to
0f63586
Compare
- Add new permissions-analysis job to linter.yml workflow - Job runs GitHubSecurityLab/actions-permissions to analyze workflow permissions - Follows same pattern as actions-pinning job for consistency - Uses minimal permissions (contents: read) - Analyzes same workflow files as defined in action-files input - Updates documentation to reflect new permissions analysis feature Co-authored-by: neilime <314088+neilime@users.noreply.github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
0f63586 to
562d951
Compare
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.
Integrates the
@GitHubSecurityLab/actions-permissionsaction into the linter workflow to proactively analyze and optimize workflow permissions.Changes Made
permissions-analysisjob to.github/workflows/linter.ymlthat runs the GitHubSecurityLab/actions-permissions action (v1.0.10).github/workflows/linter.mdto document the new permissions analysis featurecontents: read) following GitHub security best practicesactions-pinningjob for file gathering and analysisaction-filesinput, supports both full repo analysis and changed-files-only modeThe permissions analysis job runs in parallel with other linting jobs (Super-Linter, CodeQL, Ratchet) and helps identify opportunities to minimize workflow permissions based on actual usage.
Testing
Fixes #346
Original prompt
Fixes #346
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.