Skip to content

Update slither-args in slither.yml workflow #23

Update slither-args in slither.yml workflow

Update slither-args in slither.yml workflow #23

Workflow file for this run

name: Slither Analysis
on: push
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
node-version: '18'
fail-on: 'medium' # Fail the action on medium severity issues
slither-args: '--filter-paths "contracts/mock|node_modules" --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/contracts/'
- name: Create/update checklist as PR comment
uses: actions/github-script@v7
env:
REPORT: ${{ steps.slither.outputs.stdout }}
with:
script: |
const script = require('.github/scripts/comment')
const header = '# Slither report'
const body = process.env.REPORT
await script({ github, context, header, body })