Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SARIF URI scheme "git" did not match the checkout URI scheme "file" #96

Open
apentsak-vitech opened this issue Mar 26, 2024 · 0 comments

Comments

@apentsak-vitech
Copy link

Receive error:

Waiting for processing to finish
  Analysis upload status is pending.
  Analysis upload status is failed.
Error: Code Scanning could not process the submitted SARIF file:
SARIF URI scheme "git" did not match the checkout URI scheme "file"
ConfigurationError: Code Scanning could not process the submitted SARIF file:
SARIF URI scheme "git" did not match the checkout URI scheme "file"
    at run (/home/runner/work/_actions/github/codeql-action/v3/lib/upload-sarif-action.js:65:15)
    at async runWrapper (/home/runner/work/_actions/github/codeql-action/v3/lib/upload-sarif-action.js:76:9)

I've used this GitHub Action:

    - name: tfsec
      continue-on-error: true
      uses: aquasecurity/[email protected]
      with:
        tfsec_formats: 'default,sarif'
        tfsec_args: '--force-all-dirs'
        working_directory: '${{ inputs.scan_dir }}'
        github_token: ${{ github.token }}

module sources as Terraform Registry in my terraform (Failed):

module "router_lambda" {
  source  = "terraform-aws-modules/lambda/aws"
  version = "7.2.1"

as a workaround changed to module sources as GitHub (Passed):

module "router_lambda" {
  source = "github.com/terraform-aws-modules/terraform-aws-lambda//modules/tags?ref=v7.2.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant