Open robyngit opened 2 weeks ago
I think this may be a security feature of GitHub actions. When workflows run on pull_request
events triggered by forks, GitHub restricts the permissions of the GITHUB_TOKEN
to prevent potential misuse of secrets or repository access by untrusted code. This PR was in fact a fork, so I think that could be the source of the error.
We might need to conditionally run a different step for PRs that are from forks?
The reviewdog with prettier action to check formatting on PRs isn't working as expected. The action details show the following problem:
Here is a job run with the error: https://github.com/NCEAS/metacatui/actions/runs/9556159324/job/26377186438
We need to configure the permissions for the job properly. We currently have the following set:
I'm not sure why this doesn't work, this will need some further investigation.