Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit 6ffd518

Browse files
fix: update GitHub release workflow to use generated token (#84)
1 parent 7fef0b9 commit 6ffd518

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,18 @@ jobs:
110110
- docker
111111
runs-on: ubuntu-latest
112112
steps:
113+
- name: Generate token
114+
id: generate_token
115+
uses: tibdex/github-app-token@v1
116+
with:
117+
app_id: ${{ secrets.OS_GITHUB_APP_ID }}
118+
private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }}
119+
113120
- name: "☁️ checkout repository"
114121
uses: actions/checkout@v2
115122
with:
116123
fetch-depth: 0
124+
token: ${{ steps.generate_token.outputs.token }}
117125

118126
- name: "♻️ clean up artifact paths"
119127
run: |
@@ -141,7 +149,7 @@ jobs:
141149
id: semantic-release
142150
uses: open-sauced/release@v1
143151
env:
144-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
145153

146154
deploy:
147155
if: github.event.repository.default_branch == github.ref_name

0 commit comments

Comments
 (0)