mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
When the workflow is triggered from a fork the permissions for the `GITHUB_TOKEN` are read-only. This chane skips the write operations if we're running from a fork. See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-events-for-forked-repositories