Skip to content

Restrict GitHub Actions token permissions - #864

Merged
Brian Caswell (demoray) merged 1 commit into
microsoft:mainfrom
demoray:bcaswell/explicit-actions-permissions
Aug 14, 2026
Merged

Restrict GitHub Actions token permissions#864
Brian Caswell (demoray) merged 1 commit into
microsoft:mainfrom
demoray:bcaswell/explicit-actions-permissions

Conversation

@demoray

Copy link
Copy Markdown
Collaborator

Summary

  • set the workflow-level GITHUB_TOKEN permission to contents: read
  • ensure jobs without their own permission block use an explicit least-privilege default

Impact

The workflow only checks out source, builds, tests, caches dependencies, and uploads workflow artifacts. It does not require repository write permissions.

Set the workflow-level GITHUB_TOKEN permission to contents read so every job uses an explicit least-privilege default.

Copilot-Session: cf6d8ec5-8442-41c4-8539-917cacf1ed06
@demoray
Brian Caswell (demoray) merged commit 98eb504 into microsoft:main Aug 14, 2026
7 checks passed
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.

2 participants