Update semgrep to 0.113.0 (#17168)

* Update semgrep to 0.113.0
* Print semgrep version in CI
This commit is contained in:
Steven Clark 2022-09-16 09:41:58 -04:00 committed by GitHub
parent 37b30337a0
commit 7f31d68d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

4
.circleci/config.yml generated
View File

@ -751,7 +751,7 @@ jobs:
- GO_TAGS: ''
semgrep:
docker:
- image: docker.mirror.hashicorp.services/returntocorp/semgrep:0.106.0
- image: docker.mirror.hashicorp.services/returntocorp/semgrep:0.113.0
shell: /bin/sh
working_directory: /home/circleci/go/src/github.com/hashicorp/vault
steps:
@ -759,7 +759,7 @@ jobs:
- attach_workspace:
at: .
- run:
command: "# Alpine images can't run the make file due to a bash requirement. Run\n# semgrep explicitly here. \nexport PATH=\"$HOME/.local/bin:$PATH\" \nsemgrep --error --include '*.go' --exclude 'vendor' -f tools/semgrep/ci .\n"
command: "# Alpine images can't run the make file due to a bash requirement. Run\n# semgrep explicitly here. \nexport PATH=\"$HOME/.local/bin:$PATH\" \necho -n 'Semgrep Version: '\nsemgrep --version\nsemgrep --error --include '*.go' --exclude 'vendor' -f tools/semgrep/ci .\n"
name: Run Semgrep Rules
pre-flight-checks:
machine:

View File

@ -24,7 +24,7 @@ python:
working_directory: /home/circleci/go/src/github.com/hashicorp/vault
semgrep:
docker:
- image: docker.mirror.hashicorp.services/returntocorp/semgrep:0.106.0
- image: docker.mirror.hashicorp.services/returntocorp/semgrep:0.113.0
shell: /bin/sh
working_directory: /home/circleci/go/src/github.com/hashicorp/vault
docker-env-go-test-remote-docker:

View File

@ -10,4 +10,6 @@ steps:
# Alpine images can't run the make file due to a bash requirement. Run
# semgrep explicitly here.
export PATH="$HOME/.local/bin:$PATH"
echo -n 'Semgrep Version: '
semgrep --version
semgrep --error --include '*.go' --exclude 'vendor' -f tools/semgrep/ci .