Skip to content

Commit

Permalink
ci: use github app token (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro committed Jan 13, 2024
1 parent c38361d commit 37296cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/github_actions.yml
Expand Up @@ -73,6 +73,13 @@ jobs:
if: ${{ (github.ref == 'refs/heads/main') && (contains(fromJSON('["workflow_dispatch", "schedule"]'), github.event_name)) }}

steps:
- name: Create GitHub App token 🔑
id: create-app-token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Checkout 🛎️
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -102,5 +109,5 @@ jobs:
- name: Release 🚀
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GITHUB_TOKEN: ${{ steps.create-app-token.outputs.token }}
GOOGLE_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}

0 comments on commit 37296cb

Please sign in to comment.