terrascan-action icon indicating copy to clipboard operation
terrascan-action copied to clipboard

Terrascan with Private Repo and `sarif_upload` Enabled

Open jrmash opened this issue 3 years ago • 0 comments

I'm encountering an error when using this action in a private repository with the sarif_upload feature enabled:

| Generating SARIF file
| 2021-11-10T23:43:09.047Z      error   utils/file.go:29        file <repo>.git does not exist.
| 2021-11-10T23:43:09.049Z      error   utils/file.go:29        file <repo>.git does not exist.
| 2021-11-10T23:43:09.050Z      error   utils/file.go:29        file <repo>.git does not exist.
| 2021-11-10T23:43:09.052Z      error   utils/file.go:29        file <repo>.git does not exist.
| 2021-11-10T23:43:09.053Z      error   utils/file.go:29        file <repo>.git does not exist.

The configuration is the same as the example usage, with the following two differences:

policy_type: all
scm_token: ${{ secrets.GITHUB_TOKEN }}

jrmash avatar Nov 11 '21 00:11 jrmash