Skip to content

Commit

Permalink
chore: add slitherin
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Sep 9, 2024
1 parent 7ce88b7 commit b191098
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ jobs:
# REVIEW: here and below steps taken from official guide
# https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
- name: Install poetry
run: >
pipx install poetry
run: pipx install poetry

# REVIEW:
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-adding-a-system-path
- name: Add poetry to $GITHUB_PATH
run: >
echo "$HOME/.local/bin" >> $GITHUB_PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- uses: actions/setup-python@v5
with:
Expand All @@ -37,12 +35,21 @@ jobs:
- name: Install dependencies
run: poetry install --no-root

- name: Remove foundry.toml
run: rm -f foundry.toml
- name: Versions
run: >
poetry --version &&
python --version &&
echo "slither $(poetry run slither --version)" &&
poetry run slitherin --version
- name: Run slither
run: >
poetry run slither . --sarif results.sarif --no-fail-pedantic
run: >
poetry run slither . \
--filter-paths test \
--no-fail-pedantic \
--compile-force-framework hardhat \
--sarif results.sarif \
--exclude pess-strange-setter
- name: Check results.sarif presence
id: results
Expand Down
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ setuptools = "^70.0.0"

[tool.poetry.group.dev.dependencies]
slither-analyzer = "^0.10.4"
slitherin = "^0.7.2"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit b191098

Please sign in to comment.