Skip to content

Commit 1da50ec

Browse files
committed
chore: updates workflows host-contracts
1 parent b094bf8 commit 1da50ec

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

host-contracts/.github/workflows/host-contracts-npm-tests.yml renamed to .github/workflows/host-contracts-npm-tests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Fhevm Host Contracts npm Tests
1+
name: Fhevm Host Contracts NPM/Forge Tests
22

33
on:
44
pull_request:
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
persist-credentials: 'false'
3636
- name: Install Foundry
37-
uses: foundry-rs/foundry-toolchain@de808b1eea699e761c404bda44ba8f21aba30b2c # v1.3.1
37+
uses: foundry-rs/foundry-toolchain@82dee4ba654bd2146511f85f0d013af94670c4de # v1.4.0
3838
with:
3939
version: stable
4040
- name: Use Node.js ${{ matrix.node-version }}
@@ -43,9 +43,7 @@ jobs:
4343
node-version: ${{ matrix.node-version }}
4444
- run: cp ./host-contracts/.env.example ./host-contracts/.env
4545
- run: npm --prefix ./host-contracts ci --include=optional
46-
- name: Prettier check
47-
run: npm --prefix ./host-contracts run prettier:check
4846
- name: "Run JS/TS tests"
49-
run: npm --prefix ./host-contracts run test:mock
47+
run: npm --prefix ./host-contracts run test:mock
5048
- name: "Run forge tests"
51-
run: "cd host-contracts && forge test"
49+
run: "cd host-contracts && forge install foundry-rs/forge-std && forge test"

host-contracts/.github/workflows/host-contracts-slither-analysis.yml renamed to .github/workflows/host-contracts-slither-analysis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Fhevm Host Contracts Slither Analysis
22

3+
# The SARIF output is temporarily disabled.
34
on:
45
pull_request:
56
branches:
@@ -26,6 +27,10 @@ jobs:
2627
needs: check-changes
2728
if: ${{ needs.check-changes.outputs.changes-host-contracts == 'true' }}
2829
runs-on: large_ubuntu_32
30+
permissions:
31+
contents: read
32+
checks: write
33+
security-events: write
2934
steps:
3035
- name: Checkout
3136
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -42,14 +47,10 @@ jobs:
4247
ignore-compile: false
4348
solc-version: "0.8.24"
4449
slither-config: ".slither.config.json"
45-
sarif: results.sarif
50+
# sarif: results.sarif
4651
fail-on: none
4752
target: "./host-contracts/"
48-
- name: Upload SARIF file
49-
uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
50-
with:
51-
sarif_file: results.sarif
52-
53-
permissions:
54-
contents: read
55-
checks: write
53+
# - name: Upload SARIF file
54+
# uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
55+
# with:
56+
# sarif_file: results.sarif

.slither.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"solc_remaps": ["@openzeppelin/=node_modules/@openzeppelin/"],
3-
"filter_paths": "contracts/node_modules/|contracts/lib/|contracts/test/"
3+
"filter_paths": "host-contracts/node_modules/|host-contracts/lib/|host-contracts/test/"
44
}

0 commit comments

Comments
 (0)