Skip to content

Commit 7e1f5eb

Browse files
committed
ci: update token
1 parent 6f4d56f commit 7e1f5eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/grept-cronjob.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
2727
id: app-token
2828
with:
29-
app-id: ${{ vars.APP_ID }}
29+
app-id: ${{ secrets.APP_ID }}
3030
private-key: ${{ secrets.APP_PRIVATE_KEY }}
3131

3232
- name: query GitHub graphql API
@@ -72,7 +72,7 @@ jobs:
7272
- uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
7373
id: app-token
7474
with:
75-
app-id: ${{ vars.APP_ID }}
75+
app-id: ${{ secrets.APP_ID }}
7676
private-key: ${{ secrets.APP_PRIVATE_KEY }}
7777

7878
- name: set env result=success
@@ -82,7 +82,7 @@ jobs:
8282
- name: checkout remote
8383
id: checkout
8484
run: |
85-
git clone "https://${{ env.GITHUB_USER }}:${{ secrets.USER_PAT }}@github.com/Azure/${{ matrix.repo }}.git"
85+
git clone "https://${{ env.GITHUB_USER }}:${{ steps.app-token.outputs.result }}@github.com/Azure/${{ matrix.repo }}.git"
8686
env:
8787
GH_TOKEN: ${{ steps.app-token.outputs.token }}
8888

0 commit comments

Comments
 (0)