File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
repository_dispatch :
4
4
# sync_cms_to_repo is a bespoke type created for use with the CMS Webhook
5
5
types : [sync_cms_to_repo]
6
- env :
7
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8
6
jobs :
9
7
sync-to-repo :
10
8
runs-on : ubuntu-latest
@@ -19,13 +17,15 @@ jobs:
19
17
check-latest : true
20
18
- name : Install dependencies
21
19
run : npm install
22
- - name : Setup git config
23
- run : |
24
- git config user.name 'github-actions[bot]'
25
- git config user.email 'github-actions[bot]@users.noreply.github.com'
20
+ - name : Generate GitHub token
21
+ uses : navikt/github-app-token-generator@v1.1.1
22
+ id : get-token
23
+ with :
24
+ private-key : ${{ secrets.TOKENS_PRIVATE_KEY }}
25
+ app-id : ${{ secrets.TOKENS_APP_ID }}
26
26
- name : Sync CMS to repo
27
27
env :
28
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ GITHUB_TOKEN : ${{ steps.get-token.outputs.token }}
29
29
CMS_CHANGES : ${{ toJson(github.event.client_payload) }}
30
30
31
31
run : bin/sync_cms_to_repo.sh
You can’t perform that action at this time.
0 commit comments