From 820f9fa3338a1c69a05ad874968c0654bd63b4c1 Mon Sep 17 00:00:00 2001 From: Goldie Date: Tue, 17 Sep 2024 14:14:20 +0000 Subject: [PATCH] fix: run on push and pull request --- .github/workflows/run-semgrep.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-semgrep.yaml b/.github/workflows/run-semgrep.yaml index c2d729af5..14c62e340 100644 --- a/.github/workflows/run-semgrep.yaml +++ b/.github/workflows/run-semgrep.yaml @@ -1,8 +1,8 @@ name: Run Semgrep on: - pull_request: {} - workflow_dispatch: {} + push: + workflow_dispatch: jobs: semgrep: @@ -23,7 +23,7 @@ jobs: repository: decurity/semgrep-smart-contracts path: rules - - run: semgrep scan --sarif --output=semgrep.sarif packages/contracts/src/dollar || true + - run: semgrep ci --sarif --output=semgrep.sarif --include packages/contracts/src/dollar || true env: SEMGREP_RULES: rules/solidity/security rules/solidity/performance