Skip to content

Commit 3543952

Browse files
committed
ci: sign tag of release with app
1 parent d0d821c commit 3543952

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.changeset/violet-pears-float.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"slack-github-action": patch
3+
---
4+
5+
ci: sign tag of release with app"

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,18 @@ jobs:
5252
permissions:
5353
contents: write
5454
steps:
55+
- name: Gather credentials
56+
id: credentials
57+
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
58+
with:
59+
app-id: ${{ secrets.GH_APP_ID }}
60+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
61+
5562
- name: Checkout repo
5663
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5764
with:
5865
persist-credentials: true
66+
token: ${{ steps.credentials.outputs.token }}
5967

6068
- name: Setup Node
6169
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
@@ -123,4 +131,4 @@ jobs:
123131
env:
124132
VERSION: ${{ steps.version.outputs.version }}
125133
SHA: ${{ steps.release.outputs.sha }}
126-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134+
GH_TOKEN: ${{ steps.credentials.outputs.token }}

0 commit comments

Comments
 (0)