Skip to content

Restrict GitHub Actions workflow permissions - #1415

Merged
dannyhw merged 1 commit into
mainfrom
dannyhw/limit-workflow-permissions
Jul 27, 2026
Merged

Restrict GitHub Actions workflow permissions#1415
dannyhw merged 1 commit into
mainfrom
dannyhw/limit-workflow-permissions

Conversation

@dannyhw

@dannyhw dannyhw commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • restrict the CI and main-matrix workflows to read-only repository contents
  • grant the stale workflow only the write permissions required to manage repository contents, issues, and pull requests
  • address the five open actions/missing-workflow-permissions CodeQL alerts: #5, #6, #8, #9, and #18

Root cause

These workflows did not declare explicit GITHUB_TOKEN permissions, so their effective access depended on repository or organization defaults.

Impact

The test workflows now operate with read-only access. The stale bot retains the minimum write access needed to label, update, and close stale issues and pull requests. No application or package behavior changes.

Validation

  • actionlint .github/workflows/test-main-matrix.yml .github/workflows/test.yml .github/workflows/stale-bot.yml
  • parsed all three files as YAML
  • git diff --check

@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 72eee33

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repack-website Ready Ready Preview, Comment Jul 27, 2026 9:53pm

Request Review

@dannyhw
dannyhw marked this pull request as ready for review July 27, 2026 21:55
@dannyhw
dannyhw merged commit b63a6b5 into main Jul 27, 2026
10 checks passed
@dannyhw
dannyhw deleted the dannyhw/limit-workflow-permissions branch July 27, 2026 21:56
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