Skip to content

Commit

Permalink
Autotag using a PAT instead of github.token
Browse files Browse the repository at this point in the history
Using github.token means that the action will not trigger any further
workflows. However, what we want is for workflows to be triggered. So we
use a PAT here to ensure that happens.

This is secure since PRs only have access to secrets if the PR is made
from a branch within the same repository.
  • Loading branch information
swlynch99 committed Nov 9, 2024
1 parent ac5fdeb commit cc5af66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
pull-requests: write
env:
PR: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.LABEL_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Add the pr-pull label to the issue
Expand Down

0 comments on commit cc5af66

Please sign in to comment.