Skip to content

Commit d0650fe

Browse files
authored
chore: Replace personal access token with GitHub App Token (#24)
1 parent 4a093a7 commit d0650fe

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/create-dataset-site-template-pr.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,20 @@ jobs:
3131
# git stashing if no material changes allows the next step to close the PR if one is already open
3232
run: if [ "$(git diff --numstat | grep -vc '^1\s.*datasetsite\.mustache\|1\s.*datasetsite-csp\.mustache\|.*datasetsite-csp\.static\.zip$')" -eq "0" ]; then git stash; else echo "Material changes found"; fi
3333
working-directory: ./
34-
34+
35+
- name: Generate GitHub App Token
36+
uses: actions/create-github-app-token@v1
37+
id: generate-token
38+
with:
39+
app-id: ${{ secrets.GH_APP_ID }}
40+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
41+
3542
- name: Create Pull Request
3643
id: cpr
3744
uses: peter-evans/create-pull-request@v7
3845
with:
3946
path: ./
40-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
47+
token: ${{ steps.generate-token.outputs.token }}
4148
commit-message: Update dataset site template
4249
committer: openactive-bot <openactive-bot@users.noreply.github.com>
4350
author: openactive-bot <openactive-bot@users.noreply.github.com>

0 commit comments

Comments
 (0)