From 08a3c501d053b711f54145e360259911d31116dd Mon Sep 17 00:00:00 2001 From: Roderik van der Veer Date: Thu, 9 Jan 2025 10:59:23 +0100 Subject: [PATCH] chore: ci fix --- .github/workflows/solidity.yml | 5 +++-- Dockerfile | 4 ++-- lib/forge-std/src/StdCheats.sol | 12 ++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/solidity.yml b/.github/workflows/solidity.yml index 48e4819..c8e8c23 100644 --- a/.github/workflows/solidity.yml +++ b/.github/workflows/solidity.yml @@ -43,7 +43,7 @@ jobs: - name: Install canvas dependencies run: | sudo apt-get update - sudo apt-get install -y build-essential libsdl-pango-dev libpangocairo-1.0-0 libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev + sudo apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev - uses: crytic/slither-action@v0.4.0 id: slither @@ -54,6 +54,7 @@ jobs: fail-on: none - name: Upload findings to GitHub Advanced Security Dashboard + continue-on-error: true uses: github/codeql-action/upload-sarif@v3 with: sarif_file: ${{ steps.slither.outputs.sarif }} @@ -316,4 +317,4 @@ jobs: for tag in ${TAGS}; do images+="${tag}@${DIGEST} " done - cosign sign --yes ${images} + cosign sign --yes ${images} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 79f8c26..fb13fc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM node:22.12.0 AS build +FROM node:22.13.0 AS build -COPY --from=oven/bun:1.1.42-debian --chmod=0777 /usr/local/bin/bun /bin/bun +COPY --from=oven/bun:1.1.43-debian --chmod=0777 /usr/local/bin/bun /bin/bun ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 ENV BUN_INSTALL_BIN=/bin diff --git a/lib/forge-std/src/StdCheats.sol b/lib/forge-std/src/StdCheats.sol index 051ef71..9f360de 100644 --- a/lib/forge-std/src/StdCheats.sol +++ b/lib/forge-std/src/StdCheats.sol @@ -349,6 +349,18 @@ abstract contract StdCheatsSafe { ); } + function assumeUnusedAddress(address addr) internal view virtual { + uint256 size; + assembly { + size := extcodesize(addr) + } + vm.assume(size == 0); + + assumeNotPrecompile(addr); + assumeNotZeroAddress(addr); + assumeNotForgeAddress(addr); + } + function readEIP1559ScriptArtifact(string memory path) internal view