Skip to content

error converting SARIF from Semgrep CLI #249

Open
@semgrep-shichao

Description

@semgrep-shichao

HI SCW team,

I tried to integrate SCW to my github action to process SARIF generated from Semgrep CLI, and I got the following:

Run SecureCodeWarrior/github-action-add-sarif-contextual-training@v1.15
  with:
    inputSarifFile: ./results.json
    outputSarifFile: ./processed-sarifs
  env:
    SEMGREP_APP_TOKEN: ***
/usr/bin/docker exec  5568dc96a9a97d3367760e569ff2664efabbaf480c545f32be86260f7f142d4e sh -c "cat /etc/*release | grep ^ID"
./results.json
Error Error: Received error response
    at /__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/directLinking.js:29:1
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at processRule (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/sarifProcessors/ruleProcessor.js:50:1)
    at Object.processRun (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/sarifProcessors/ruleProcessor.js:88:1)
    at run (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/runner.js:47:1)
Error Error: Received error response
    at /__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/directLinking.js:29:1
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at processRule (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/sarifProcessors/ruleProcessor.js:50:1)
    at Object.processRun (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/sarifProcessors/ruleProcessor.js:88:1)
    at run (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/runner.js:47:1)
Error Error: Received error response
    at /__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/directLinking.js:29:1
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at processRule (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/sarifProcessors/ruleProcessor.js:50:1)
    at Object.processRun (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/sarifProcessors/ruleProcessor.js:88:1)
    at run (/__w/_actions/SecureCodeWarrior/github-action-add-sarif-contextual-training/v1.15/runner.js:47:1)

my GH action yaml is here:

https://github.com/semgrep-sc-CI/semgrep-int-SCW/blob/main/.github/workflows/semgrep.yml

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