From e2cb43c1693493cf4966bd3bfa648f871f7522a5 Mon Sep 17 00:00:00 2001 From: re1ro Date: Tue, 9 Apr 2024 20:02:58 -0400 Subject: [PATCH] ci(slither): pinning the version (#260) * ci(slither): pinning the version * ci(hardhat): adding no overrides --- .github/workflows/slither.yaml | 7 ++++++- hardhat.config.js | 10 ++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/slither.yaml b/.github/workflows/slither.yaml index c650905c..e018c1d7 100644 --- a/.github/workflows/slither.yaml +++ b/.github/workflows/slither.yaml @@ -24,4 +24,9 @@ jobs: run: npm ci - name: Run Slither - uses: crytic/slither-action@v0.3.0 + uses: crytic/slither-action@v0.3.1 + env: + NO_OVERRIDES: true + with: + node-version: 18 + slither-version: 0.10.1 diff --git a/hardhat.config.js b/hardhat.config.js index 49296ec8..3702a912 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -42,10 +42,12 @@ module.exports = { solidity: { compilers: [compilerSettings], // Fix the Proxy bytecodes - overrides: { - 'contracts/proxies/Proxy.sol': compilerSettings, - 'contracts/proxies/TokenManagerProxy.sol': compilerSettings, - }, + overrides: process.env.NO_OVERRIDES + ? {} + : { + 'contracts/proxies/Proxy.sol': compilerSettings, + 'contracts/proxies/TokenManagerProxy.sol': compilerSettings, + }, }, defaultNetwork: 'hardhat', networks,