Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add semgrep security issues scanning #961

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
Loading