Skip to content

Commit a365661

Browse files
authored
Merge pull request #521 from paoloredis/DOC-3991
DOC-3991 Use token for actions/checkout
2 parents aff66ed + f8940a1 commit a365661

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/k8s_apis_sync.yaml

+9-7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ jobs:
2020
pull-requests: write
2121
actions: write
2222
steps:
23+
- name: Generate a token
24+
id: generate-token
25+
uses: actions/create-github-app-token@v1
26+
with:
27+
app-id: ${{ secrets.DOCS_APP_ID }}
28+
private-key: ${{ secrets.DOCS_APP_PRIVATE_KEY }}
29+
2330
- name: 'Checkout'
2431
uses: actions/checkout@v3
32+
with:
33+
token: ${{ steps.generate-token.outputs.token }}
2534

2635
- name: 'Install crdoc'
2736
run: |-
@@ -63,13 +72,6 @@ jobs:
6372
sed -E -i 's/^<sup><sup>\[↩ Parent\]\(#redisenterpriseremotecluster/<sup><sup>\[↩ Parent\]\(#/g' artifacts/redis_enterprise_remote_cluster.md
6473
sed -E -i 's/<td><b><a href="#redisenterpriseremotecluster/<td><b><a href="#/' artifacts/redis_enterprise_remote_cluster.md
6574

66-
- name: Generate a token
67-
id: generate-token
68-
uses: actions/create-github-app-token@v1
69-
with:
70-
app-id: ${{ secrets.DOCS_APP_ID }}
71-
private-key: ${{ secrets.DOCS_APP_PRIVATE_KEY }}
72-
7375
- name: 'Send pull request'
7476
env:
7577
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)