Skip to content

🪲 [Fix]: Obsolete GitHub token write permissions removed - #521

Merged
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
workflow-permissions
Aug 15, 2026
Merged

🪲 [Fix]: Obsolete GitHub token write permissions removed#521
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
workflow-permissions

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Aug 15, 2026

Copy link
Copy Markdown
Member

Repositories that use the GitHub App permission model can run Process-PSModule without granting unneeded repository, pull-request, or status write access. GitHub Pages deployments continue to use the caller's github.token with contents: read, pages: write, and id-token: write.

Fixed: Reusable workflow permission escalation

The reusable workflow no longer requests permissions that GitHub App installation tokens already provide for release and pull-request operations. Update caller workflows to use the narrowed permission block documented for v8.

permissions:
  contents: read
  pages: write
  id-token: write

Technical details
  • Removed legacy github.token write requests from the reusable workflow and nested jobs; scoped GitHub App tokens retain repository and pull-request write access.
  • Updated repository workflow tests and caller documentation to use the v8 permission contract.
Changed surface Standards checked Framework docs checked Result
.github/workflows/** GitHub Actions Reusable workflow contract Fixed in this PR
docs/content/** Markdown, Natural Language Workflow setup guides Fixed in this PR
Relevant issues (or links)

Related work

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
CSS Pass ✅
CSS_PRETTIER Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
HTML Pass ✅
JAVASCRIPT_ES Pass ✅
JAVASCRIPT_PRETTIER Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Fix reusable workflow permissions 🪲 [Fix]: GitHub App callers can run Process-PSModule workflows Aug 15, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title 🪲 [Fix]: GitHub App callers can run Process-PSModule workflows 🪲 [Fix]: Obsolete GitHub token write permissions removed Aug 15, 2026
@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review August 15, 2026 17:28
@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit bb49389 into main Aug 15, 2026
78 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the workflow-permissions branch August 15, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant