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

Commit

Permalink
fix: update GitHub release workflow to use generated token
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Jul 26, 2024
1 parent 7fef0b9 commit 53e9f70
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,18 @@ jobs:
- docker
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.OS_GITHUB_APP_ID }}
private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }}

- name: "☁️ checkout repository"
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- name: "♻️ clean up artifact paths"
run: |
Expand Down Expand Up @@ -141,7 +149,7 @@ jobs:
id: semantic-release
uses: open-sauced/release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

deploy:
if: github.event.repository.default_branch == github.ref_name
Expand Down

0 comments on commit 53e9f70

Please sign in to comment.