Skip to content

chore: default to main branch for docs #322

chore: default to main branch for docs

chore: default to main branch for docs #322

Workflow file for this run

name: Slither (V2)
on:
push:
branches:
- main
paths:
- 'v2/**'
pull_request:
branches:
- "**"
paths:
- 'v2/**'
types:
- synchronize
- opened
- reopened
- ready_for_review
defaults:
run:
working-directory: ./v2
jobs:
slither:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "21.1.0"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install dependencies
run: |
yarn install
forge soldeer update
- name: Build project
run: forge build
- name: Run Slither
uses: crytic/slither-action@main
id: slither
continue-on-error: true
with:
sarif: results.sarif
node-version: "21.1.0"
slither-config: "v2/slither.config.json"
solc-version: "0.8.26"
fail-on: medium
target: "v2/"
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}