Skip to content

Commit

Permalink
Use PAT to perform CI administration
Browse files Browse the repository at this point in the history
  • Loading branch information
asorbini committed Apr 18, 2024
1 parent a4c9fe1 commit 7616ed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pull_request_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
-N ${{ github.event_name == 'pull_request' && github.event.pull_request.number || inputs.pr-number }} \
${{ (github.event_name == 'pull_request' && github.event.pull_request.merged || inputs.pr-merged) && '-m' || '' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Changes to actions (e.g. delete workflow runs) require a PAT, and don't work with the GITHUB_TOKEN
# see https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#delete-a-workflow-run
GH_TOKEN: ${{ secrets.UNO_CI_ADMIN_PAT }}
ADMIN_IMAGE: ghcr.io/mentalsmash/uno-ci-admin:latest

0 comments on commit 7616ed2

Please sign in to comment.