ci: add workflow permissions#377
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds explicit GitHub Actions permissions for the release and CI workflows to tighten scope of the GITHUB_TOKEN.
- Grants
pull-requests: writeandcontents: writeto the release job - Grants
contents: readto the CI job
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/release.yml | Added permissions block with pull-requests and contents write scopes for the release job |
| .github/workflows/ci.yml | Added permissions block with contents: read for the CI job |
Comments suppressed due to low confidence (1)
.github/workflows/ci.yml:17
- [nitpick] The explicit
contents: readpermission is redundant since GITHUB_TOKEN has read access to contents by default when no permissions block is specified. You can remove this block to simplify the workflow.
permissions:
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Added
Description of new functionality, feature, or content that has been added in this pull request.
Changed
Description of the modifications made to existing functionality, feature, or content in this pull request. This could include changes to code, CI, documentation, etc.