Skip to content

Merge pull request #3 from Stakingverse/Improve-natspec-comments #16

Merge pull request #3 from Stakingverse/Improve-natspec-comments

Merge pull request #3 from Stakingverse/Improve-natspec-comments #16

Workflow file for this run

name: analyze
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
analyze:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: ❇️ Setup Node.js v20
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: forge install
- name: Build project
run: forge build --build-info --skip */test/** */script/** --force
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
sarif: results.sarif
fail-on: none
node-version: 18
ignore-compile: true
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.slither.outputs.sarif }}