-
Notifications
You must be signed in to change notification settings - Fork 1
feat(linter): add workflow permissions analysis with actions-permissions #375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
neilime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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
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. |
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
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.