fix: remove redundant token permissions from caller jobs (#2429)#2432
Open
omthorat2004 wants to merge 2 commits into
Open
fix: remove redundant token permissions from caller jobs (#2429)#2432omthorat2004 wants to merge 2 commits into
omthorat2004 wants to merge 2 commits into
Conversation
Member
|
@omthorat2004 could you please take a look: maybe we don't need the mess I added in #2431? |
Member
|
@omthorat2004, unfortunately, your approach doesn't work: |
Author
|
Okay I will find another approach. |
mathbunnyru
reviewed
Apr 28, 2026
Member
mathbunnyru
left a comment
There was a problem hiding this comment.
Right now this doesn't seem to change anything but the ordering, please, take a look, when you can
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.
This PR removes redundant
contents: writepermission declarations from thewiki-updateandwiki-update-fastjobs in the main Docker workflow.Problem
GitHub's token permission analysis was flagging warnings for write permissions being declared at the job level in
docker.ymlwhen these jobs only call a reusable workflow that already declares its own permissions:Solution
Removed the redundant permission declarations from:
wiki-updatejob (line 482)wiki-update-fastjob (line 489)The
docker-wiki-update.ymlreusable workflow already declarespermissions: contents: writeat the job level because it needs write access to push commits to the GitHub wiki. When a reusable workflow declares its permissions, calling jobs inherit them automatically—there's no need to duplicate the declarations.Why this matters
This follows GitHub's security best practices:
Issue ticket if applicable
Fix: #2429
Checklist