-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into passkey-by-id
- Loading branch information
Showing
8 changed files
with
77 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Slither scanner | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
slither: | ||
name: Slither check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.11.0 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | ||
with: | ||
node-version: lts/Iron | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install -r --frozen-lockfile | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install foundry-zksync | ||
run: | | ||
mkdir ./foundry-zksync | ||
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly/foundry_nightly_linux_amd64.tar.gz | ||
tar zxf foundry_nightly_linux_amd64.tar.gz -C ./foundry-zksync | ||
chmod +x ./foundry-zksync/forge ./foundry-zksync/cast | ||
echo "$PWD/foundry-zksync" >> $GITHUB_PATH | ||
- name: Foundry config file | ||
run: | | ||
echo "[profile.default]" > foundry.toml | ||
echo "optimizer = true" >> foundry.toml | ||
echo "optimizer_runs = 20_000" >> foundry.toml | ||
echo "via_ir = true" >> foundry.toml | ||
echo "" >> foundry.toml | ||
- name: Install Slither | ||
run: | | ||
pip install slither-analyzer | ||
- name: Run Slither | ||
working-directory: ./ | ||
run: | | ||
slither --config ./slither.config.json . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"filter_paths": "(test|src/test|scripts|node_modules)", | ||
"detectors_to_exclude": "uninitialized-local", | ||
"exclude_dependencies": true, | ||
"compile_force_framework": "foundry", | ||
"foundry_ignore_compile": false, | ||
"exclude_high": false, | ||
"exclude_medium": false, | ||
"exclude_low": true, | ||
"exclude_informational": true, | ||
"exclude_optimization": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters