Skip to content

Commit d31d54d

Browse files
authored
chore: Replace personal access token with GitHub App Token (#65)
1 parent 7372cb3 commit d31d54d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,20 @@ jobs:
3838
- name: Run .NET models generator
3939
run: npm start -- generate .NET --destination ../OpenActive.NET/OpenActive.NET/
4040
working-directory: ./models-lib/
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 }}
4148

4249
- name: Create Pull Request
4350
id: cpr
4451
uses: peter-evans/create-pull-request@v4
4552
with:
4653
path: ./OpenActive.NET/
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)