Skip to content

Commit e1e46bc

Browse files
authored
chore: Replace personal access token with GitHub App Token (#48)
1 parent aaca78f commit e1e46bc

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
@@ -54,12 +54,19 @@ jobs:
5454
run: bundle exec rubocop -a lib/openactive/models lib/openactive/enums
5555
working-directory: ./models-ruby/
5656

57+
- name: Generate GitHub App Token
58+
uses: actions/create-github-app-token@v1
59+
id: generate-token
60+
with:
61+
app-id: ${{ secrets.GH_APP_ID }}
62+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
63+
5764
- name: Create Pull Request
5865
id: cpr
5966
uses: peter-evans/create-pull-request@v4
6067
with:
6168
path: ./models-ruby/
62-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
69+
token: ${{ steps.generate-token.outputs.token }}
6370
commit-message: Update data models
6471
committer: openactive-bot <openactive-bot@users.noreply.github.com>
6572
author: openactive-bot <openactive-bot@users.noreply.github.com>

0 commit comments

Comments
 (0)