Content-Length: 287622 | pFad | http://github.com/MaxMood96/plugins/commit/f17ac0208acc2998f4358b1d1111d426eb287a11

4C fix: use generated token for sanity to github plugin sync (#954) · MaxMood96/plugins@f17ac02 · GitHub
Skip to content

Commit f17ac02

Browse files
authored
fix: use generated token for sanity to github plugin sync (netlify#954)
1 parent fb6f311 commit f17ac02

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/sync-cms-to-repo.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
repository_dispatch:
44
# sync_cms_to_repo is a bespoke type created for use with the CMS Webhook
55
types: [sync_cms_to_repo]
6-
env:
7-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86
jobs:
97
sync-to-repo:
108
runs-on: ubuntu-latest
@@ -19,13 +17,15 @@ jobs:
1917
check-latest: true
2018
- name: Install dependencies
2119
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 }}
2626
- name: Sync CMS to repo
2727
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}
2929
CMS_CHANGES: ${{ toJson(github.event.client_payload) }}
3030

3131
run: bin/sync_cms_to_repo.sh

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/MaxMood96/plugins/commit/f17ac0208acc2998f4358b1d1111d426eb287a11

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy