Skip to content

github/codeql-action/upload-sarif@v2 upload file failed #66

@nooperpudd

Description

@nooperpudd
steps:
    - name: setup terrascan
      # https://github.com/tenable/terrascan-action
      uses: tenable/terrascan-action@main
      with:
        iac_type: 'terraform'
        iac_version: 'v14'
        policy_type: 'aws'
        only_warn: true
        iac_dir: "./infra/module"
        sarif_upload: true

    - name: Upload SARIF file
      uses: github/codeql-action/upload-sarif@v2
      with:
        sarif_file: terrascan.sarif
        category: terrascan

error message:

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",
  Error: Code Scanning could not process the submitted SARIF file:
  SARIF URI scheme "git" did not match the checkout URI scheme "file",
      at Object.waitForProcessing (/home/runner/work/_actions/github/codeql-action/v2/lib/upload-lib.js:334:19)
      at async run (/home/runner/work/_actions/github/codeql-action/v2/lib/upload-sarif-action.js:59:13)
      at async runWrapper (/home/runner/work/_actions/github/codeql-action/v2/lib/upload-sarif-action.js:74:9)

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