Skip to content

Commit bfc6fe5

Browse files
tracks: fix permissions for-no-important-files-changed workflow (#328)
Previously, the workflow did not explicitly pass in the GitHub token, which meant that commenting on PRs from forks wouldn't work. We're now explicitly passing in the token which fixes this.
1 parent 43c9cae commit bfc6fe5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tracks-files/.github/workflows/no-important-files-changed.yml

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
if: steps.check.outputs.important_files_changed == 'true'
5858
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
5959
with:
60+
github-token: ${{ github.token }}
6061
script: |
6162
const body = "This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.\n\nIf this PR does **not** affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), **please add the following to the merge-commit message** which will stops student's tests from re-running. Please copy-paste to avoid typos.\n```\n[no important files changed]\n```\n\n For more information, refer to the [documentation](https://exercism.org/docs/building/tracks#h-avoiding-triggering-unnecessary-test-runs). If you are unsure whether to add the message or not, please ping `@exercism/maintainers-admin` in a comment. Thank you!"
6263
github.rest.issues.createComment({

0 commit comments

Comments
 (0)