Skip to content

Commit b8b3ec8

Browse files
authored
switched release workflow from PAT to GitHub App token authentication (#421)
1 parent d0f42ec commit b8b3ec8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/cut-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@ jobs:
1111
permissions:
1212
contents: write
1313
steps:
14+
- name: Mint App installation token
15+
id: app-token
16+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
17+
with:
18+
app-id: ${{ secrets.APP_ID }}
19+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
20+
owner: ${{ github.repository_owner }}
21+
repositories: ${{ github.event.repository.name }}
22+
permission-contents: write
23+
1424
- uses: actions/checkout@v7.0.0
1525
with:
1626
fetch-depth: 0 # need full tag history to compute the next serial
17-
token: ${{ secrets.BOT_TOKEN }}
27+
token: ${{ steps.app-token.outputs.token }}
1828
persist-credentials: true
1929

2030
- name: Compute CalVer tag

0 commit comments

Comments
 (0)