Skip to content

feat: add missing access control #18

feat: add missing access control

feat: add missing access control #18

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
with:
submodules: recursive
- 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
- 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"
fail-on: none
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}