This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
Bump actions/upload-artifact from 3 to 4 #280
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
slither: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: styfle/[email protected] | |
name: Cancel Outdated Builds | |
with: | |
access_token: ${{ github.token }} | |
- name: Install Nix | |
uses: cachix/install-nix-action@v24 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: espresso-systems-private | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- name: Work around git issue after git CVE-2022-24765 fix. | |
run: git config --global --add safe.directory "$PWD" | |
- name: Run slither | |
run: nix-shell --run "slither ./contracts --sarif slither.sarif" | |
continue-on-error: true | |
- name: Upload slither SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: slither.sarif |