Skip to content

Commit

Permalink
chore(ci-cd): changed actions to generate token [#0]
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaulin committed Mar 15, 2024
1 parent 835fa2e commit b07bafc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Generate Bot GH Token
uses: tibdex/github-app-token@v2
- name: Obtain a GitHub App Installation Access Token
id: app-token
with:
app_id: ${{ vars.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- run: |
echo ${{ steps.app-token.outputs.token }}
run: |
TOKEN="$(npx obtain-github-app-installation-access-token ci ${{ secrets.BOT_PRIVATE_KEY }})"
echo "::add-mask::$TOKEN"
echo "token=$TOKEN" >> $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit b07bafc

Please sign in to comment.