Skip to content
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

chore: remove slither ci #40

Merged
merged 1 commit into from
Jul 5, 2024
Merged
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
92 changes: 46 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,49 +266,49 @@ jobs:
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to Codecov" >> $GITHUB_STEP_SUMMARY

slither-analyze:
needs: ["build", "lint"]
runs-on: "ubuntu-latest"
permissions:
actions: "read"
contents: "read"
security-events: "write"
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install viper
shell: bash
run: python3 -m pip install vyper==0.3.10

- name: Compile foundry
run: forge build --build-info --skip */test/** */scripts/** --force

- name: "Install Slither"
run: "python3 -m pip install slither-analyzer"

- name: "Run Slither analysis"
id: slither
run:
slither . --ignore-compile --sarif results.sarif --fail-none

- name: "Upload SARIF file to GitHub code scanning"
uses: "github/codeql-action/upload-sarif@v2"
with:
sarif_file: results.sarif

- name: "Upload SARIF file to GitHub code scanning"
uses: "github/codeql-action/upload-sarif@v2"
with:
sarif_file: ${{ steps.slither.outputs.sarif }}

- name: "Add Slither summary"
run: |
echo "## Slither result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY
#slither-analyze:
# needs: ["build", "lint"]
# runs-on: "ubuntu-latest"
# permissions:
# actions: "read"
# contents: "read"
# security-events: "write"
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: "recursive"
#
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly
#
# - name: Install viper
# shell: bash
# run: python3 -m pip install vyper==0.3.10
#
# - name: Compile foundry
# run: forge build --build-info --skip */test/** */scripts/** --force
#
# - name: "Install Slither"
# run: "python3 -m pip install slither-analyzer"
#
# - name: "Run Slither analysis"
# id: slither
# run:
# slither . --ignore-compile --sarif results.sarif --fail-none
#
# - name: "Upload SARIF file to GitHub code scanning"
# uses: "github/codeql-action/upload-sarif@v2"
# with:
# sarif_file: results.sarif
#
# - name: "Upload SARIF file to GitHub code scanning"
# uses: "github/codeql-action/upload-sarif@v2"
# with:
# sarif_file: ${{ steps.slither.outputs.sarif }}
#
# - name: "Add Slither summary"
# run: |
# echo "## Slither result" >> $GITHUB_STEP_SUMMARY
# echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY
Loading