Remove unnecessary id-token: write permissions from workflows#2962
Merged
Remove unnecessary id-token: write permissions from workflows#2962
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot stopped work on behalf of
pelikhan due to an error
November 1, 2025 19:31
Contributor
|
@copilot keep working |
Contributor
Author
Completed! The Changes in commit 128f237:
|
Copilot
AI
changed the title
[WIP] Scope down id-token: write permissions in workflows
Remove unnecessary id-token: write permissions from workflows
Nov 1, 2025
pelikhan
approved these changes
Nov 1, 2025
Contributor
There was a problem hiding this comment.
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.
This was referenced Nov 2, 2025
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.
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.