Skip to content

Commit

Permalink
Revert "chore(build): disable Solidity workflow"
Browse files Browse the repository at this point in the history
This reverts commit 2d5d9db.
  • Loading branch information
MaxMustermann2 committed Feb 26, 2024
1 parent e742f8d commit c2c49f9
Showing 1 changed file with 40 additions and 41 deletions.
81 changes: 40 additions & 41 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
# # Disabled, since we do not have any contracts in this repo.
# name: Slither Analysis
name: Slither Analysis

# on:
# pull_request:
# push:
# branches:
# - develop
# - main
# - master
on:
pull_request:
push:
branches:
- develop
- main
- master

# jobs:
# analyze:
# name: Run Slither
# runs-on: ubuntu-latest
# permissions:
# contents: read
# security-events: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Get Diff
# uses: technote-space/[email protected]
# with:
# PATTERNS: |
# **/*.sol
# - name: Node dependencies Install
# run: |
# cd contracts && npm i
# cp -r node_modules/@openzeppelin .
# - name: Run Slither Action
# uses: crytic/[email protected]
# continue-on-error: true
# id: slither
# with:
# sarif: slither.sarif
# target: contracts/
# if: "env.GIT_DIFF"
# - name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: ${{ steps.slither.outputs.sarif }}
# if: "env.GIT_DIFF"
jobs:
analyze:
name: Run Slither
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Diff
uses: technote-space/[email protected]
with:
PATTERNS: |
**/*.sol
- name: Node dependencies Install
run: |
cd contracts && npm i
cp -r node_modules/@openzeppelin .
- name: Run Slither Action
uses: crytic/[email protected]
continue-on-error: true
id: slither
with:
sarif: slither.sarif
target: contracts/
if: "env.GIT_DIFF"
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
if: "env.GIT_DIFF"

0 comments on commit c2c49f9

Please sign in to comment.