Skip to content

Create slither.yml #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: chain/

- 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}}'

Loading