Skip to content

Commit ef38155

Browse files
committed
fix: add permissions for issues in GitHub Label Sync workflow
1 parent 2bbe77d commit ef38155

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/labels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
label-sync:
2727
name: label-sync
2828
runs-on: ubuntu-latest
29+
permissions:
30+
issues: write
2931
steps:
3032
- name: Checkout
3133
uses: actions/checkout@v4

crates/forge_ci/src/jobs/labels.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pub fn create_labels_workflow() -> Workflow {
1919
pub fn create_label_sync_job() -> Job {
2020
Job::new("label-sync")
2121
.runs_on("ubuntu-latest")
22+
.permissions(
23+
Permissions::default()
24+
.issues(Level::Write)
25+
)
2226
.add_step(
2327
Step::uses("actions", "checkout", "v4")
2428
.name("Checkout")

0 commit comments

Comments
 (0)