Skip to content

Commit

Permalink
Merge branch 'pull/961' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu committed Sep 30, 2024
2 parents c5891e9 + 77a9093 commit f128408
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/run-semgrep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Semgrep

on:
push:
pull_request:
workflow_dispatch:

jobs:
semgrep:
name: Scan
runs-on: ubuntu-latest

container:
image: returntocorp/semgrep

if: (github.actor != 'dependabot[bot]')

steps:
- uses: actions/checkout@v3

- name: Fetch semgrep rules
uses: actions/checkout@v3
with:
repository: decurity/semgrep-smart-contracts
path: rules

- run: semgrep ci --sarif --output=semgrep.sarif --include packages/contracts/src/dollar || true
env:
SEMGREP_RULES: rules/solidity/security rules/solidity/performance

- name: Upload findings to GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: semgrep.sarif
if: always()

0 comments on commit f128408

Please sign in to comment.