feat: PT-3322 add claimAndDelegate() to rariMine #53
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, develop ] | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: v18.13.0 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install dependencies | |
run: yarn | |
- name: Build the contracts | |
run: yarn compile && yarn compile_foundry | |
- name: Run Slither | |
uses: crytic/[email protected] | |
id: slither | |
with: | |
ignore-compile: true | |
slither-args: --exclude-dependencies --exclude-informational --foundry-ignore-compile --compile-force-framework hardhat --show-ignored-findings --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/ | |
fail-on: none | |
- shell: bash | |
run: | | |
echo ${{ toJSON(steps.slither.outputs.stdout) }} > slither.md | |
sed -i "s/'this'/this/" slither.md | |
cat slither.md | |
- name: Create/update checklist as PR comment | |
uses: actions/github-script@v6 | |
if: github.event_name == 'pull_request' | |
with: | |
script: | | |
console.log("script start 01") | |
const script = require('.github/scripts/comment') | |
const fs = require('fs'); | |
const header = '# Slither report' | |
const body = fs.readFileSync('slither.md', 'ascii'); | |
await script({ github, context, header, (body + "").replace(/\n/g, "<br>") }) |