Skip to content

feat: add semgrep security issues scanning #12

feat: add semgrep security issues scanning

feat: add semgrep security issues scanning #12

Workflow file for this run

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()