diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml index 0b679ea..ac1b6ca 100644 --- a/.github/workflows/sync-labels.yaml +++ b/.github/workflows/sync-labels.yaml @@ -16,6 +16,11 @@ on: jobs: sync-labels: runs-on: ubuntu-latest + + permissions: + # "Write" to Issues to manage labels for the repo + issues: write + steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/update-issues.yaml b/.github/workflows/update-issues.yaml index 6424ce1..29b6984 100644 --- a/.github/workflows/update-issues.yaml +++ b/.github/workflows/update-issues.yaml @@ -8,13 +8,16 @@ on: # Run every 30 minutes - cron: '*/30 * * * *' -permissions: - issues: write - pull-requests: write - jobs: update-issues: runs-on: ubuntu-latest + + permissions: + # "Write" to Issues to add labels, milestones, comments, etc. + issues: write + # "Write" to Pull Requests for the same. + pull-requests: write + steps: - name: Checkout code uses: actions/checkout@v4