Conversation
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
📦 Next.js Bundle Analysis for @10up/wp-nextjs-appThis analysis was generated by the Next.js Bundle Analysis action. 🤖 🎉 Global Bundle Size Decreased
DetailsThe global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster. Any third party scripts you have added directly to your app using the If you want further insight into what is behind the changes, give @next/bundle-analyzer a try! |
📦 Next.js Bundle Analysis for @10up/headstartwpThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write |
There was a problem hiding this comment.
Missing actions: read permission for artifact download
High Severity
The App Router bundle analysis workflow is missing the actions: read permission required by dawidd6/action-download-artifact@v6 to download artifacts from other workflow runs. The Pages Router version of this workflow correctly includes actions: read, but it was omitted here. Without this permission, the "Download base branch bundle stats" step will fail, breaking the bundle comparison feature.


Description of the Change
This pull request updates the permissions configuration for several GitHub Actions workflows to explicitly declare the minimum required permissions for each workflow. This improves security by restricting token access to only what is needed for each workflow to run.
Permissions configuration updates:
Build and test workflows now explicitly request read-only access to repository contents in
.github/workflows/build-test.yml,.github/workflows/eslint.yml,.github/workflows/phpcs.yml,.github/workflows/phpunit.yml, and.github/workflows/unit-tests.yml. [1] [2] [3] [4] [5]Next.js bundle analysis workflows now request read access to contents, actions, and write access to pull requests and issues in
.github/workflows/nextjs_bundle_analysis.yml, and read access to contents plus write access to pull requests in.github/workflows/nextjs_bundle_analysis-app-router.yml. [1] [2]Deployment and release workflows:
Documentation and plugin release workflows now request write access to repository contents in
.github/workflows/deploy-docs.yml,.github/workflows/deploy_wp_plugin_develop.yml, and.github/workflows/deploy_wp_plugin_stable.yml. [1] [2] [3]NPM and latest release workflows now request write access to contents and pull requests in
.github/workflows/npm-release-next-version.ymland.github/workflows/release-latest-version.yml. [1] [2]How to test the Change
Changelog Entry
n/a
Credits
Props @jeffpaul.
Checklist:
Note
Low Risk
Workflow-only permission scoping change; low functional risk, with the main risk being CI/deploy jobs failing if any required permission was missed.
Overview
Adds explicit
permissionsblocks across GitHub Actions workflows to follow least-privilege defaults.CI/test workflows are restricted to
contents: read, while release/deploy workflows grantcontents: write(and where neededpull-requests: write, plusactions: read/issues: writefor bundle analysis) so they can publish artifacts and comment/update PRs.Written by Cursor Bugbot for commit 6db0242. This will update automatically on new commits. Configure here.