From 06c8b9a78ee04922be312f9100318c93f6b40014 Mon Sep 17 00:00:00 2001 From: JuanAgudeloRSL <167249920+JuanAgudeloRSL@users.noreply.github.com> Date: Fri, 13 Dec 2024 07:33:38 +0000 Subject: [PATCH] wip: dependencies install --- .github/workflows/slither.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml index 22adac7..db33980 100644 --- a/.github/workflows/slither.yml +++ b/.github/workflows/slither.yml @@ -1,4 +1,5 @@ name: Slither Analysis + on: [push] permissions: @@ -11,6 +12,18 @@ jobs: security-events: write steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Install dependencies + run: | + if [ ! -f package.json ]; then + npm init -y + fi + npm install @openzeppelin/contracts - name: Run Slither uses: crytic/slither-action@6ef3a33e56de4e8f59488cf60858b5c1bf4967c0 # v0.3.0 @@ -19,7 +32,7 @@ jobs: sarif: results.sarif fail-on: none target: contracts/ - + - name: Upload SARIF file uses: github/codeql-action/upload-sarif@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9 with: