-
Notifications
You must be signed in to change notification settings - Fork 34
Remove unnecessary id-token: write permissions from workflows #2962
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
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot keep working |
Completed! The Changes in commit 128f237:
|
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.
Pull Request Overview
This PR removes the id-token: write permission from two GitHub Agentic Workflows. The permission was previously included with a comment indicating it was "for auth in some actions," but has now been removed from both the workflow definitions and their compiled lock files.
Key Changes
- Removed
id-token: writepermission from daily-test-improver workflow - Removed
id-token: writepermission from daily-perf-improver workflow - Updated corresponding
.lock.ymlfiles to reflect the permission changes
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/daily-test-improver.md | Removed id-token: write permission from workflow frontmatter |
| .github/workflows/daily-test-improver.lock.yml | Removed compiled id-token: write permission from main job and safe-outputs jobs |
| .github/workflows/daily-perf-improver.md | Removed id-token: write permission from workflow frontmatter |
| .github/workflows/daily-perf-improver.lock.yml | Removed compiled id-token: write permission from main job and safe-outputs jobs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Remove unnecessary id-token: write permissions from daily-perf-improver and daily-test-improver
This PR addresses a HIGH severity excessive-permissions vulnerability identified by Zizmor security analysis.
Changes
id-token: writefrom workflow-level permissions in.github/workflows/daily-perf-improver.mdid-token: writefrom workflow-level permissions in.github/workflows/daily-test-improver.md.lock.ymlfilesAnalysis
Both workflows had
id-token: writeat workflow-level (affecting all jobs) and at theagentjob level. After reviewing the actions used (checkout, upload-artifact, download-artifact, github-script, setup-node), none require OIDC authentication or id-token permissions. The comment "for auth in some actions" was outdated.The permission has been completely removed from both workflows since it wasn't actually needed anywhere. The compiler automatically removed it from both workflow-level and job-level permissions.
Verification Results
✅ Zizmor scan completed with 0 HIGH severity findings
The excessive-permissions vulnerability has been successfully resolved.
Related to #2950
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.