Skip to content

Commit

Permalink
Merge pull request #484 from roots/feat/github-app
Browse files Browse the repository at this point in the history
Promote GitHub App usage for token generation
  • Loading branch information
swalkinshaw authored Apr 27, 2022
2 parents a731b04 + e5ec7d7 commit a700127
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
- full

steps:
- name: Generate token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -42,6 +49,6 @@ jobs:
- name: Run
run: composer run build -- $REMOTE $PACKAGE --type=$TYPE --unstable
env:
REMOTE: https://${{ github.actor }}:${{ secrets.ROOTS_BOT_ACCESS_TOKEN }}@github.com/${{ github.repository_owner }}/${{ secrets.PACKAGE_NAME }}.git
REMOTE: https://${{ github.actor }}:${{ steps.generate-token.outputs.token }}@github.com/${{ github.repository_owner }}/${{ secrets.PACKAGE_NAME }}.git
PACKAGE: ${{ github.repository_owner }}/${{ secrets.PACKAGE_NAME }}
TYPE: ${{ matrix.release-type }}

0 comments on commit a700127

Please sign in to comment.