Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: don't use github.event.pull_request.head.ref

...

  • This restriction does not apply to workflows triggered by pull_request_target or issue_comment
  • This restriction does not protect against compromised committer accounts
  • When using the 'checkout' action to check out the relevant PR, do not specify the ref  as "refs/pull/${{ github.event.number }}/merge" or "github.event.pull_request.head.ref": the PR may have been updated since the workflow was approved. Instead, leave the ref  empty to use the code associated with the event that triggered the build , (which should be the code as it was what it looked like when it was approved), or use the exact commit hash.

Default GITHUB_TOKEN permissions

...