fix(ci): missing autolabeler permissions#1608
Conversation
Adds the missing permissions to allow autolabeler to add labels in the pull requests. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Actions autolabeler workflow to grant write permissions needed for applying labels to pull requests.
Changes:
- Add
pull-requests: writeto workflow-levelpermissionsin the autolabeler workflow.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
There was a problem hiding this comment.
The job already sets permissions, which (per GitHub Actions semantics) overrides the workflow-level permissions. As written, the autolabeler job will only have pull-requests: write and will not inherit contents: read, and adding pull-requests: write at the workflow level will not change the token permissions inside the job. Consider either removing the job-level permissions block (so the job inherits contents: read + pull-requests: write), or explicitly including both permissions at the job level.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1608 +/- ##
==========================================
+ Coverage 80.42% 80.44% +0.01%
==========================================
Files 127 127
Lines 16411 16411
==========================================
+ Hits 13199 13202 +3
+ Misses 3212 3209 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Adds the missing permissions to allow autolabeler to add labels in the pull requests.