Skip to content

A GitHub Action for running Slither in the cloud

Notifications You must be signed in to change notification settings

contractshark/slither-cloud-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slither Cloud Action

This action uses a Slither Cloud instance to create a SARIF JSON file for upload to GitHub.

Inputs

slither-cloud-uri

Required The URI for the Slither Cloud instance.

truffle-version

Required The version of Truffle to use to build the code. For example, [email protected]. To use the latest version of Truffle, set this to truffle. This is also the default.

Outputs

sarif-path

The path to the generated SARIF JSON file.

Example usage

on: [push]

jobs:
  slither:
    runs-on: ubuntu-latest
    name: Run slither on the codebase
    steps:
    - name: Checkout repository
      uses: actions/checkout@v2
    - name: Run Slither
      id: slither
      uses: trailofbits/slither-cloud-action@v1
      with:
        slither-cloud-uri: ${{ secrets.SLITHER_CLOUD_URI }}
        truffle-version: 'truffle'
    - name: Upload SARIF file
      uses: github/codeql-action/upload-sarif@v1
      with:
        sarif_file: "${{ steps.slither.outputs.sarif }}"

About

A GitHub Action for running Slither in the cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published