Skip to content

Commit 254466c

Browse files
authored
chore: Use GitHub App for update-deps workflow (#605)
1 parent 87f2314 commit 254466c

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@v3
1222
with:
13-
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
23+
token: ${{ steps.generate_token.outputs.token }}
1424

1525
- name: Set up Python
1626
uses: actions/setup-python@v4

0 commit comments

Comments
 (0)