Commit 1495f6d0 authored by smartcontracts's avatar smartcontracts Committed by GitHub

feat(ci): add semgrep to contracts checks (#12395)

Adds the semgrep step to contracts-bedrock checks now that semgrep
is added to the latest version of ci-builder.
parent 86c37b94
...@@ -3,7 +3,7 @@ version: 2.1 ...@@ -3,7 +3,7 @@ version: 2.1
parameters: parameters:
ci_builder_image: ci_builder_image:
type: string type: string
default: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:v0.53.0 default: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:v0.54.0
ci_builder_rust_image: ci_builder_rust_image:
type: string type: string
default: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder-rust:latest default: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder-rust:latest
...@@ -701,6 +701,8 @@ jobs: ...@@ -701,6 +701,8 @@ jobs:
- run: - run:
name: print forge version name: print forge version
command: forge --version command: forge --version
- run-contracts-check:
command: semgrep
- run-contracts-check: - run-contracts-check:
command: semver-lock command: semver-lock
- run-contracts-check: - run-contracts-check:
......
...@@ -193,6 +193,10 @@ validate-spacers-no-build: ...@@ -193,6 +193,10 @@ validate-spacers-no-build:
# Checks that spacer variables are correctly inserted. # Checks that spacer variables are correctly inserted.
validate-spacers: build validate-spacers-no-build validate-spacers: build validate-spacers-no-build
# Runs semgrep on the contracts.
semgrep:
cd ../../ && semgrep scan --config=.semgrep ./packages/contracts-bedrock
# TODO: Also run lint-forge-tests-check but we need to fix the test names first. # TODO: Also run lint-forge-tests-check but we need to fix the test names first.
# Runs all checks. # Runs all checks.
check: check:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment