Skip to content

Template Validation workflow fails on pull request. #544

@prasann

Description

@prasann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions