Skip to content

Commit a700127

Browse files
authored
Merge pull request #484 from roots/feat/github-app
Promote GitHub App usage for token generation
2 parents a731b04 + e5ec7d7 commit a700127

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/run.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
- full
1616

1717
steps:
18+
- name: Generate token
19+
uses: tibdex/github-app-token@v1
20+
id: generate-token
21+
with:
22+
app_id: ${{ secrets.BOT_APP_ID }}
23+
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
24+
1825
- uses: actions/checkout@v3
1926

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

0 commit comments

Comments
 (0)