Skip to content

Commit

Permalink
Merge branch 'main' into fuzz-tests-poc
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis authored Jul 11, 2024
2 parents 3190026 + b0fbc16 commit 4ec838c
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Coverage

on:
push:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Slither

on:
push:
branches:
- main
pull_request:
branches:
- "*"
types:
- synchronize
- opened
- reopened
- ready_for_review

jobs:
slither:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "18"

- name: Install Dependencies
run: yarn install

- name: Compile contracts
run: yarn compile

- name: Run Slither
uses: crytic/slither-action@main
id: slither
continue-on-error: true
with:
sarif: results.sarifs
node-version: "18"
fail-on: none

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
7 changes: 7 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"detectors_to_exclude": "",
"compile_force_framework": "hardhat",
"hardhat_ignore_compile": true,
"npx_disable": true,
"filter_paths": "artifacts,cache,data,dist,docs,lib,node_modules,pkg,scripts,tasks,test,testing,typechain-types"
}

0 comments on commit 4ec838c

Please sign in to comment.