semgrep / semgrep-action

This project is deprecated. Use https://github.com/returntocorp/semgrep instead
https://semgrep.dev/docs/semgrep-ci/
73 stars 33 forks source link

Action failed on Circle CI #217

Closed echlebek closed 3 years ago

echlebek commented 3 years ago

Filing this because the log told me to :)

Run returntocorp/semgrep-action@v1
/usr/bin/docker run --name returntocorpsemgrepagentv1_133c26 --label 5588e4 --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_CONFIG -e INPUT_PUBLISHTOKEN -e INPUT_PUBLISHDEPLOYMENT -e INPUT_GENERATESARIF -e INPUT_AUDITON -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/sensu-enterprise-go/sensu-enterprise-go":"/github/workspace" returntocorp/semgrep-agent:v1
| versions          - semgrep 0.41.1 on Python 3.9.2
| environment       - running in environment github-actions, triggering event is 'pull_request'
| manage            - not logged in
=== setting up agent configuration
| using semgrep rules from https://semgrep.dev/c/p/dgryski.semgrep-go
| using default path ignore rules of common test and dependency directories
| not on head ref d51682b5c065582832d355830e862b9b8cfd6910; checking that out now...
| reporting findings introduced by these commits:
| <REDACTED>
| looking at 3 changed paths
| found 3 files in the paths to be scanned
=== looking for current issues in 3 files
| returning to original head revision 3713264a7ebaa302b2083e9d9c799d4790ee7ad2

=== failed command's STDOUT:

    {"results": [], "errors": [{"type": "InvalidPatternError", "code": 4, "short_msg": "invalid pattern", "long_msg": "Pattern could not be parsed as a Golang semgrep pattern", "level": "error", "spans": [{"start": {"line": 39, "col": 25}, "end": {"line": 44, "col": 1}, "source_hash": "605470db9979b33bcf7e2b6ea50e7524d7793560e306f39a26c7c8a1958ff4ca", "file": "https://semgrep.dev/...", "context_start": null, "context_end": null}]}]}

=== failed command's STDERR:

    using config from https://semgrep.dev/p/dgryski.semgrep-go. Visit https://semgrep.dev/registry to see all public rules.
    downloading config...
    running 32 rules...

Error: ROR] `/root/.local/bin/semgrep --skip-unknown-extensions --disable-nosem --json --config https://semgrep.dev/c/p/dgryski.semgrep-go -o /tmp/tmpwicycn1b backend/backend.go backend/bsmd/bsmd.go backend/metricsd/metricsd.go` failed with exit code 4

This is an internal error, please file an issue at https://github.com/returntocorp/semgrep-action/issues/new/choose
and include any log output from above.
brendongo commented 3 years ago

Tracked it down to a server issue. Fix incoming.

chmccreery commented 3 years ago

@brendongo can we close this?

brendongo commented 3 years ago

For internal tracking this was fixed by https://github.com/returntocorp/semgrep-app/pull/1794