Skip to content

Commit

Permalink
ci(inbox): add permissions and GH_TOKEN for gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Nov 1, 2023
1 parent f100c7f commit 453c2a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/add-to-inbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
issues:
types: [opened, reopened]

permissions:
issues: write

jobs:
add-to-inbox:
if: ${{ github.repository == 'primer/doctocat' }}
Expand All @@ -13,6 +16,8 @@ jobs:
steps:
- name: Add labels to issue
run: gh issue edit $ISSUE_URL --add-label 'react'
env:
GH_TOKEN: ${{ github.token }}
- id: get-github-access-token
uses: actions/create-github-app-token@v1
with:
Expand Down

0 comments on commit 453c2a0

Please sign in to comment.