Skip to content

Commit ff26356

Browse files
authored
feat: use app token for shared zizmor workflow (#1611)
1 parent 38125ae commit ff26356

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/shared-zizmor.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ jobs:
2222
with:
2323
persist-credentials: false
2424

25+
- id: token
26+
uses: immich-app/devtools/actions/create-workflow-token@caa599d954228439ea3e8ce1c3328f41ab120ee6 # create-workflow-token-action-v2.0.0
27+
with:
28+
client-id: ${{ secrets.PUSH_O_MATIC_APP_CLIENT_ID }}
29+
private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}
30+
2531
- name: Run zizmor 🌈
2632
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
33+
with:
34+
token: ${{ steps.token.outputs.token }}

tf/deployment/modules/shared/github/org/repo-files/.github/workflows/org-zizmor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ jobs:
1313
actions: read
1414
contents: read
1515
security-events: write
16+
secrets: inherit

0 commit comments

Comments
 (0)