Skip to content

Commit

Permalink
Create slither.yml
Browse files Browse the repository at this point in the history
adding slither
  • Loading branch information
inigo-rootstocklabs authored Jun 18, 2024
1 parent 699b0cb commit 554266a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Slither Analysis
on: [push]
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
steps:
- uses: actions/checkout@v3

- name: Run Slither
uses: crytic/slither-action@v0.3.0
id: slither
with:
node-version: 16
fail-on: none
slither-args: --filter-paths "openzeppelin,RIF,util" --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
target: contracts/

- name: Create Slack payload
id: create-slack-payload
run: |
npm install -g md-to-pdf
touch slither-output.md
echo -n '${{steps.slither.outputs.stdout }}' > slither-output.md
md-to-pdf slither-output.md > slither-output.pdf
- uses: MeilCli/slack-upload-file@v3
with:
slack_token: ${{ secrets.SLACK_TOKEN }}
channel_id: 'C05UBKD9Y65'
file_path: 'slither-output.pdf'
initial_comment: 'Slither scan results for ${{github.repository}}'

0 comments on commit 554266a

Please sign in to comment.