Skip to content

feat: add CI workflows #8

feat: add CI workflows

feat: add CI workflows #8

Workflow file for this run

name: Slither Analysis
on:
workflow_call:
push:
permissions:
issues: write
pull-requests: write
jobs:
analyze:
name: Analyse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
node-version: 16
fail-on: none
slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
- name: Create/update checklist as PR comment
uses: actions/github-script@v6
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 })