Skip to content

Commit c628afd

Browse files
committed
try to fix permissions for trigger
1 parent 7610602 commit c628afd

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/dev-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
permissions:
88
contents: write
99
packages: write
10+
actions: write
1011

1112
jobs:
1213
build-publish:
@@ -55,9 +56,11 @@ jobs:
5556
needs: build-publish
5657
steps:
5758
- name: Trigger baudi-docker (Dev) build
59+
env:
60+
PAT: ${{ secrets.GITHUB_TOKEN }}
5861
run: |
5962
curl -X POST \
60-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
63+
-H "Authorization: token $PAT" \
6164
-H "Accept: application/vnd.github.v3+json" \
6265
https://api.github.com/repos/Baumann-Digital/baudi-docker/dispatches \
6366
-d '{"event_type":"baudi_data_dev_latest","client_payload":{"ref":"'$GITHUB_REF'","commit":"'$GITHUB_SHA'"}}'

.github/workflows/prod-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
permissions:
88
contents: write
99
packages: write
10+
actions: write
1011

1112
jobs:
1213
build-publish:
@@ -62,9 +63,11 @@ jobs:
6263
needs: build-publish
6364
steps:
6465
- name: Trigger baudi-docker (Prod) build
66+
env:
67+
PAT: ${{ secrets.GITHUB_TOKEN }}
6568
run: |
6669
curl -X POST \
67-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
70+
-H "Authorization: token $PAT" \
6871
-H "Accept: application/vnd.github.v3+json" \
6972
https://api.github.com/repos/Baumann-Digital/baudi-docker/dispatches \
7073
-d '{"event_type":"baudi_data_prod_latest","client_payload":{"ref":"'$GITHUB_REF'","commit":"'$GITHUB_SHA'"}}'

0 commit comments

Comments
 (0)