Skip to content

Commit 9d1516b

Browse files
authored
Merge pull request #3 from posit-dev/update-workflow
ci: switch to github app
2 parents 383f17c + 60fcaee commit 9d1516b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/extensions.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,21 @@ jobs:
223223
RELEASES: ${{ needs.fetch-releases.outputs.releases }}
224224

225225
steps:
226+
- name: Generate token for GitHub App
227+
id: generate-token
228+
uses: actions/create-github-app-token@v2
229+
with:
230+
app-id: 1129585
231+
private-key: ${{ secrets.POSIT_CONNECT_PROJECTS_PEM }}
232+
permission-contents: write
233+
226234
# Checkout main to commit the updated extension list
227235
# reduces the chance of conflicts when updating the extension list with
228236
# multiple running workflows
229-
- uses: actions/checkout@v4
237+
- uses: actions/checkout@v6
230238
with:
231239
ref: main
232-
ssh-key: ${{ secrets.DEPLOY_KEY }}
240+
token: ${{ steps.generate-token.outputs.token }}
233241

234242
- uses: actions/setup-node@v4
235243
with:

0 commit comments

Comments
 (0)