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

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

Open
nooperpudd opened this issue Jun 20, 2022 · 0 comments
Open

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

nooperpudd opened this issue Jun 20, 2022 · 0 comments

Comments

@nooperpudd
Copy link

nooperpudd commented Jun 20, 2022

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)
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