Skip to content

Add workflow permissions#9536

Merged
michaelstaib merged 1 commit intomainfrom
mst/workflow-permissions
Apr 13, 2026
Merged

Add workflow permissions#9536
michaelstaib merged 1 commit intomainfrom
mst/workflow-permissions

Conversation

@michaelstaib
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 13, 2026 02:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens GitHub Actions GITHUB_TOKEN access by explicitly setting least-privilege workflow/job permissions across CI, coverage, website publish, and cache cleanup workflows.

Changes:

  • Add workflow-level permissions: contents: read to key workflows to avoid default broad token scopes.
  • Add job-level permission overrides where write access is required (e.g., PR review comments, cache deletion).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/publish-website.yml Adds workflow-level contents: read to constrain token scope during website publish.
.github/workflows/coverage.yml Adds workflow-level contents: read to constrain token scope during coverage runs.
.github/workflows/ci.yml Adds workflow-level contents: read and grants pull-requests: write only to the Nitro validation job that comments on PRs.
.github/workflows/ci-cleanup.yml Grants minimal job permissions (contents: read, actions: write) needed for cache cleanup via gh actions-cache.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@michaelstaib michaelstaib merged commit 61160ef into main Apr 13, 2026
134 checks passed
@michaelstaib michaelstaib deleted the mst/workflow-permissions branch April 13, 2026 03:39
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (05f53e0) to head (409b786).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #9536   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants