Skip to content

Commit 64bb384

Browse files
sd109MoteHue
authored andcommitted
Update github example workflow to fix workflow permissions issue (azimuth-cloud#209)
1 parent 8ca03e4 commit 64bb384

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github-upgrade-check.yml.sample

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
# newer tag is found in the upstream repository then a pull request is created to the downstream repo
44
# in order to merge in the changes from the new upstream release.
55

6-
# To use this workflow in a downstream azimuth-config repository simply copy it into .github/workflows
7-
# and give it an appropriate name, e.g.
8-
# cp .github-upgrade-check.yml.sample .github/workflows/upgrade-check.yml
6+
# To use this workflow in a downstream azimuth-config repository, first copy it into .github/workflows
7+
# and give it an appropriate name, e.g. `cp .github-upgrade-check.yml.sample .github/workflows/upgrade-check.yml`
8+
# then create a fine-grained GitHub access token for the target repository with the permissions specified here:
9+
# https://github.com/peter-evans/create-pull-request?tab=readme-ov-file#token
10+
# (i.e. contents: write, pull-requests: write AND workflows: write).
11+
# GitHub actions can be funny about using tokens with no expiry date in workflows so make sure the token
12+
# has an expiry date. After creating the token, copy the generated secret string and set it as a GitHub
13+
# actions secret named WORKFLOW_TOKEN in the repository's settings page.
914

1015
name: Check for upstream updates
1116
on:
@@ -66,3 +71,4 @@ jobs:
6671
body: This PR was automatically generated by GitHub Actions.
6772
commit-message: "Upgrade Azimuth to ${{ steps.release_tag.outputs.value }}"
6873
delete-branch: true
74+
token: ${{ secrets.WORKFLOW_TOKEN }}

0 commit comments

Comments
 (0)