Skip to content

Commit 92a13e7

Browse files
authored
chore: Replace personal access token with GitHub App Token (#13)
1 parent defd6c0 commit 92a13e7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,19 @@ jobs:
4848
run: if [ "$(git diff --numstat | grep -vc '^.*package\.json\|.*package-lock\.json$')" -eq "0" ]; then git stash; else echo "Material changes found"; fi
4949
working-directory: ./
5050

51+
- name: Generate GitHub App Token
52+
uses: actions/create-github-app-token@v1
53+
id: generate-token
54+
with:
55+
app-id: ${{ secrets.GH_APP_ID }}
56+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
57+
5158
- name: Create Pull Request
5259
id: cpr
5360
uses: peter-evans/create-pull-request@v4
5461
with:
5562
path: .
56-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
63+
token: ${{ steps.generate-token.outputs.token }}
5764
commit-message: Update data models and dataset site template
5865
committer: openactive-bot <openactive-bot@users.noreply.github.com>
5966
author: openactive-bot <openactive-bot@users.noreply.github.com>

0 commit comments

Comments
 (0)