Remove SARIF file upload step in slither.yml #9
Workflow file for this run
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] | |
permissions: | |
contents: read | |
security-events: write | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Optionally, set up Node.js if your project requires it | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
# Optionally, install JavaScript dependencies if your project requires it | |
- name: Install JavaScript Dependencies | |
run: yarn install --frozen-lockfile | |
# Run Slither static analyzer | |
- name: Run Slither | |
uses: crytic/[email protected] | |
with: | |
ignore-compile: true # Assume pre-compilation or custom compilation steps | |
fail-on: "medium" # Action will fail if issues of medium severity or higher are found | |
slither-version: "0.8.3" # Use a specific Slither version | |
solc-version: "0.8.24" # Use a specific Solidity compiler version | |
target: "contracts/" # Specify the target directory for analysis | |
sarif: "slither-results.sarif" # Generate a SARIF report for Code Scanning integration |