Skip to content

Commit

Permalink
feat(ci): use crytic slither action
Browse files Browse the repository at this point in the history
  • Loading branch information
owieth committed Feb 1, 2024
1 parent d76bd1f commit fdb961e
Showing 1 changed file with 36 additions and 27 deletions.
63 changes: 36 additions & 27 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
name: Slither Analysis
# name: Slither Analysis

# on:
# push: {}
# workflow_dispatch: {}

# jobs:
# analyze:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive

# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly

# - name: Install Solc-Select
# run: |
# pip3 install solc-select
# id: install

# - name: Install Slither
# run: |
# pip3 install slither-analyzer
# solc-select use 0.8.18 --always-install
# id: setup

on:
push: {}
workflow_dispatch: {}
# - name: Run Slither
# run: |
# slither .
# id: Analyze

name: Slither Analysis
on: [push]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install Solc-Select
run: |
pip3 install solc-select
id: install

- name: Install Slither
run: |
pip3 install slither-analyzer
solc-select use 0.8.18 --always-install
id: setup

- name: Run Slither
run: |
slither .
id: Analyze
- uses: crytic/slither-action@v0.3.1

0 comments on commit fdb961e

Please sign in to comment.