feat: skip new contracts on check_storage_layout
#34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Semgrep | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**.sol' | |
pull_request: | |
paths: | |
- '**.sol' | |
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 --no-suppress-errors | |
env: | |
SEMGREP_RULES: rules/solidity/security | |
- name: Upload findings to GitHub Advanced Security Dashboard | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: semgrep.sarif | |
if: always() |