Skip to content

Commit 486e806

Browse files
Reikyonickevansuk
andauthored
chore: Replace personal access token with GitHub App Token (#117)
Co-authored-by: Nick Evans <2616208+nickevansuk@users.noreply.github.com>
1 parent 95550a5 commit 486e806

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/create-data-model-pr.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,20 @@ jobs:
3838
- name: Run PHP models generator
3939
run: npm start -- generate PHP --destination ../models-php/src/
4040
working-directory: ./models-lib/
41-
41+
42+
- name: Generate GitHub App Token
43+
uses: actions/create-github-app-token@v1
44+
id: generate-token
45+
with:
46+
app-id: ${{ secrets.GH_APP_ID }}
47+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
48+
4249
- name: Create Pull Request
4350
id: cpr
4451
uses: peter-evans/create-pull-request@v4
4552
with:
4653
path: ./models-php/
47-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
54+
token: ${{ steps.generate-token.outputs.token }}
4855
commit-message: Update data models
4956
committer: openactive-bot <openactive-bot@users.noreply.github.com>
5057
author: openactive-bot <openactive-bot@users.noreply.github.com>

0 commit comments

Comments
 (0)