✏️ Fix typos #33
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: 🔒️ Smart contract security analysis | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: ["main"] | |
# cancel previous runs on the same PR | |
concurrency: | |
group: ${{ github.ref }}-analysis | |
cancel-in-progress: true | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: "🔨 Install Foundry" | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: "💾 Foundry fork cache" | |
uses: actions/cache@v3 | |
with: | |
path: "~/.foundry/cache" | |
key: foundry-${{ hashFiles('foundry.toml') }} | |
- name: "💾 Foundry compilation cache" | |
uses: actions/cache@v3 | |
with: | |
path: | | |
cache | |
out | |
key: foundry-${{ github.repository_id }}-${{ hashFiles('foundry.toml') }} | |
- name: "🔒️ Run Slither" | |
uses: crytic/[email protected] | |
id: slither | |
with: | |
solc-version: 0.8.21 | |
sarif: results.sarif | |
fail-on: none | |
slither-config: 'tools/slither.config.json' | |
- name: "📈 Upload SARIF file report" | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: ${{ steps.slither.outputs.sarif }} |