Skip to content

Commit

Permalink
Generate a new token for each job
Browse files Browse the repository at this point in the history
  • Loading branch information
F-WRunTime committed Dec 3, 2024
1 parent 03faaef commit 53976a8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,17 @@ jobs:
matrix:
value: ${{fromJson(needs.list.outputs.matrix)}}
steps:
- name: 'Generate GitHub App Token'
id: automerge_token
uses: actions/[email protected]
with:
app-id: ${{ secrets.AUTOMERGE_APP_ID }}
private-key: ${{ secrets.AUTOMERGE_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: 'Check Automerge Repo to Test'
env:
token: ${{ needs.list.outputs.token }}
token: ${{ steps.automerge_token.outputs.token }}
uses: actions/checkout@v4

- name: 'Automerge runtimeverification/${{ matrix.value }}'
Expand All @@ -49,7 +57,7 @@ jobs:
with:
org: 'runtimeverification'
repo: ${{ matrix.value }}
token: ${{ needs.list.outputs.token }}
token: ${{ steps.automerge_token.outputs.token }}
debug: --dry-run

- name: 'Automerge runtimeverification/${{ matrix.value }}'
Expand All @@ -58,7 +66,7 @@ jobs:
with:
org: 'runtimeverification'
repo: ${{ matrix.value }}
token: ${{ needs.list.outputs.token }}
token: ${{ steps.automerge_token.outputs.token }}
debug: --dry-run
comment: 'true'

0 comments on commit 53976a8

Please sign in to comment.