Repository navigation
Not a PR, nothing to comment on, exiting... #1825
Unanswered
samarth3112
asked this question in
Help and suppports
Replies: 1 comment
|
The Check your reusable workflow caller. The event that triggered the parent workflow must be a pull request event for the commenter to have a PR to annotate. # caller workflow — must be triggered by pull_request
on:
pull_request:
branches: [main]
jobs:
security:
uses: your-org/reusable-workflows/.github/workflows/tfsec.yml@mainIf you want the tfsec scan to run on both pushes and PRs but only comment on PRs, add a condition on the commenter step: - name: tfsec PR commenter
uses: aquasecurity/tfsec-pr-commenter-action@v1
if: github.event_name == 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}The scan step itself can run unconditionally; the commenter just won't post anything when there's no PR to attach to. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I m getting below error while using in reusbale workflow.
starting the github commenter...
Not a PR, nothing to comment on, exiting...
Can you suggest a fix
All reactions