Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Pull request overview
This PR updates the main Publish GitHub Actions workflow to explicitly grant token permissions needed by downstream reusable workflows (NPM trusted publishing via OIDC, AWS OIDC for CDN deploy, and GitHub Pages for Storybook).
Changes:
- Added a workflow-level
permissionsblock grantingid-token: write,contents: write, andpages: writeto the publish pipeline.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.github/workflows/publish.yml
Outdated
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| pages: write |
There was a problem hiding this comment.
The workflow-level permissions block grants id-token: write and pages: write to all jobs (including update_package_version), which increases blast radius if any step/action in those jobs is compromised. Prefer setting minimal permissions per job (especially for the reusable-workflow call jobs) so only the NPM/CDN/Pages deployments get id-token: write/pages: write, while version/tag/release steps get only the specific contents scope they need.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Code Review Results✅ StrengthsThe fix correctly addresses the OIDC permission propagation issue for reusable workflow calls by explicitly setting the required permissions at the caller job level. 🚨 Critical IssuesNone.
|
No description provided.