tfsec-pr-commenter-action: Unable to find PR

  • ‘[’ -n /github/workspace ‘]’
  • cd /github/workspace
  • tfsec --format=json .
  • echo ‘tfsec violations were identified, running commenter…’ tfsec violations were identified, running commenter…
  • commenter Starting the github commenter… The commenter failed with the following error: PR number [8] not found for DSC/github_actions

This is my workflow:

name: tfsec-pr-commenter
on:
  pull_request:
jobs:
  tfsec:
    name: tfsec PR commenter
    runs-on: [ self-hosted ]

    steps:
      - name: Clone repo
        uses: actions/checkout@master

      - name: tfsec
        uses: aquasecurity/tfsec-pr-commenter-action@v0.1.7
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Am I missing something?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Hey @nascit - I’m assuming that’s Github Enterprise server and it’s self-hosted? If this is the case then I think I just need to support passing in API URL.

Are you happy to be a bit of tester for this if I add the feature?

Also on GHE with the same error when using 1.2.0 of the action. Would be appreciated if this could support GHE. Would love to help testing it.

Hey - apologies for the [huge] delay on this - the underlying library is being tested with GHE this week then I’ll update this to use it