Skip to content

Commit

Permalink
ci pr_labeler: also use the app token for issues
Browse files Browse the repository at this point in the history
`label.py pr` used the app token, but `label.py issue` still used the
old builtin GHA token. Oops!
  • Loading branch information
gotmax23 committed Oct 17, 2023
1 parent 8a8b3b4 commit 3cd2760
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@

name: "Triage Issues and PRs"

permissions:
issues: write
pull-requests: write

jobs:
label_prs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,7 +52,7 @@ jobs:
if: "github.event.issue || inputs.type == 'issue'"
env:
event_json: "${{ toJSON(github.event) }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
run:
./venv/bin/python hacking/pr_labeler/label.py issue ${{ github.event.issue.number || inputs.number }}
- name: "Run the PR labeler"
Expand Down

0 comments on commit 3cd2760

Please sign in to comment.