diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 43937a1e2..9056d1495 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -194,34 +194,34 @@ jobs: if: failure() uses: andymckay/cancel-action@0.2 -# analyze: -# needs: setup -# runs-on: ubuntu-latest -# permissions: -# contents: read -# security-events: write -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3.1.0 -# - name: Setup node -# uses: actions/setup-node@v3.5.1 -# with: -# node-version: 16.14.x -# cache: "npm" -# - name: Install Dependencies -# run: npm install -# - name: Prepare Environment -# shell: bash -# run: | -# cp .env.example .env -# - name: Slither analyzer -# uses: crytic/slither-action@v0.3.0 -# id: slither -# with: -# node-version: 16 -# sarif: results.sarif -# fail-on: none -# - name: Upload SARIF file -# uses: github/codeql-action/upload-sarif@v2 -# with: -# sarif_file: ${{ steps.slither.outputs.sarif }} + analyze: + needs: setup + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: + - name: Checkout repository + uses: actions/checkout@v3.1.0 + - name: Setup node + uses: actions/setup-node@v3.5.1 + with: + node-version: 16.14.x + cache: "npm" + - name: Install Dependencies + run: npm install + - name: Prepare Environment + shell: bash + run: | + cp .env.example .env + - name: Slither analyzer + uses: crytic/slither-action@v0.3.0 + id: slither + with: + node-version: 16 + sarif: results.sarif + fail-on: none + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{ steps.slither.outputs.sarif }}