Merge pull request #1 from manifoldfinance/feat/slither #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slither analysis | |
# Controls when the action will run. | |
on: | |
push: | |
paths: | |
- 'src/**/*.sol' | |
# ensure multiple CI processes are not running analysis on contracts | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
env: | |
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
PULL_NUMBER: ${{ github.event.pull_request.number }} | |
RUN_ID: ${{ github.run_id }} | |
jobs: | |
slither: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run Slither | |
uses: crytic/slither-action@v0.3.0 | |
id: slither | |
with: | |
fail-on: all | |
slither-args: --checklist |