Skip to content

Commit 0599c2f

Browse files
authored
chore: Use GitHub App for update-deps workflow (#658)
* chore: Use GitHub App for update-deps workflow * Allow manual trigger
1 parent 81bf828 commit 0599c2f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/update-deps.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,24 @@ name: update-deps
33
on:
44
schedule:
55
- cron: "0 10 * * *" # Run at 10 am every day
6+
workflow_dispatch:
67

78
jobs:
89
check:
910
runs-on: ubuntu-latest
11+
environment:
12+
name: protected-main-env
1013
steps:
14+
- name: Generate token
15+
id: generate_token
16+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
17+
with:
18+
app-id: ${{ secrets.GH_APP_ID }}
19+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
20+
1121
- uses: actions/checkout@v2
1222
with:
13-
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
23+
token: ${{ steps.generate_token.outputs.token }}
1424

1525
- uses: actions/setup-node@v3
1626
with:

0 commit comments

Comments
 (0)