-
Notifications
You must be signed in to change notification settings - Fork 619
Template Validation workflow fails on pull request. #544
Description
Template validation workflow that runs as part of the pull_request fails at the create_comment step.
as per the github actions' readme: https://github.com/peter-evans/create-or-update-comment
Note: In public repositories this action does not work in pull_request workflows when triggered by forks. Any attempt will be met with the error, Resource not accessible by integration. This is due to token restrictions put in place by GitHub Actions. Private repositories can be configured to enable workflows from forks to run without restriction. See here for further explanation. Alternatively, use the pull_request_target event to comment on pull requests.
Likely, the PRs raised by non-maintainers will be triggered by forks I believe.
Example: https://github.com/Azure/Azure-DataFactory/actions/runs/4280602024/jobs/7452581479 - Failed job