Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 0.9.3 #38

Merged
merged 218 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
841f460
detect local shadowing of named returns vars
0xalpharush Dec 16, 2022
4b315ff
Implement `__eq__()` for Structure class
webthethird Dec 28, 2022
f8f71ec
Add test contracts for storage layout
webthethird Dec 28, 2022
e91fc2f
Update CI test for upgradeability
webthethird Dec 28, 2022
a6ef052
Fix indent in test_13.txt
webthethird Dec 28, 2022
969274f
Compare struct element types as strings
webthethird Dec 28, 2022
2ab7667
Also compare the number of struct elements
webthethird Dec 28, 2022
5705018
Fix `UserDefinedType.__eq__()` for Contracts
webthethird Dec 29, 2022
1d6efae
Implement `Structure.__hash__()`
webthethird Dec 29, 2022
19b3af3
Merge remote-tracking branch 'crytic/slither/dev' into slither/dev-up…
webthethird Jan 10, 2023
62902d7
'No uppercase' warning for public vars removed
bart1e Dec 18, 2022
d400d19
Tests added
bart1e Jan 12, 2023
2a5f05a
Clarify requirement of installing solc
CodeSandwich Jan 13, 2023
a5f0485
Clarify no need solc on supported platforms
CodeSandwich Jan 13, 2023
2102725
Minor codex improvements
montyly Jan 13, 2023
ea8d232
Minor API improvements
montyly Jan 13, 2023
1af71e6
Tests fixed
bart1e Jan 13, 2023
df912be
Old tests removed
bart1e Jan 13, 2023
339d661
test_detectors updated
bart1e Jan 13, 2023
60fd088
Fix CI badge in README.md
elopez Jan 13, 2023
fb3c863
Fix support for constant variable lookup in yul
montyly Jan 19, 2023
9d510ec
Strongly connected components algorithm fix + cyclomatic complexity a…
bart1e Jan 21, 2023
676901a
Black on test file
montyly Jan 23, 2023
e02b1f2
Merge pull request #1603 from crytic/dev-fix-readme-badge
montyly Jan 23, 2023
818c485
Merge pull request #1599 from CodeSandwich/patch-1
montyly Jan 23, 2023
b6d6294
Merge pull request #1617 from bart1e/strongly_connected_components_fix
montyly Jan 23, 2023
a87c3bc
High cyclomatic complexity detector added
bart1e Jan 21, 2023
a1f85c3
Requested changes added
bart1e Jan 23, 2023
bb556ba
Fix for 'Type not subscriptable' issue
bart1e Jan 23, 2023
e415501
add issue template for trouble with installation
0xalpharush Jan 23, 2023
71f4064
add more info
0xalpharush Jan 23, 2023
28b5bcd
quotes, unique ids
0xalpharush Jan 23, 2023
7466f89
move to discussions
0xalpharush Jan 23, 2023
b57be52
Add more types hints
montyly Jan 24, 2023
d4e2f36
Monkeytype
montyly Jan 24, 2023
faba84e
Black + pylint
montyly Jan 24, 2023
8eec95b
Types improvements
montyly Jan 25, 2023
b9ad502
Types improvements
montyly Jan 25, 2023
2caf510
Merge pull request #1530 from bart1e/no_uppercase_for_public_vars
montyly Jan 25, 2023
f16d098
More types
montyly Jan 25, 2023
38a46fa
Fix pylint/black
montyly Jan 25, 2023
fb964e7
use enum strings instead of impl. __str__
0xalpharush Jan 31, 2023
0058614
run tests in parallel
0xalpharush Jan 31, 2023
6b50684
use enum value
0xalpharush Jan 31, 2023
537f11c
only run python linters when .py changed
0xalpharush Jan 31, 2023
4e04eb5
remove as tests aren't thread safe
0xalpharush Jan 31, 2023
0b20aca
fix compilation unit missing in source API
0xalpharush Jan 31, 2023
21a0ba8
do not consider string types as immut cand.
0xalpharush Feb 1, 2023
ce8e502
more types
0xalpharush Feb 1, 2023
d6af2ea
fix tuple
0xalpharush Feb 1, 2023
4e8066c
consider constants in divide-before-multiply
0xalpharush Feb 1, 2023
1c81171
References of user defined aliases updated + references added when ca…
bart1e Jan 14, 2023
63bd0dc
Unused imports removed
bart1e Jan 14, 2023
5b09336
Tests added
bart1e Feb 2, 2023
47ce273
Revert "show ignored findings by default for checklist"
0xalpharush Feb 2, 2023
d1f17f9
Merge pull request #1623 from crytic/slither-doctor-issue-template
montyly Feb 7, 2023
3bf8bfb
fix ternary in nested expr with index access
0xalpharush Feb 9, 2023
9361a7b
use dynamic property
0xalpharush Feb 9, 2023
8475083
fix
0xalpharush Feb 9, 2023
6b9fac3
Merge pull request #1600 from crytic/dev-codex-improvements
montyly Feb 13, 2023
540985d
Merge pull request #1601 from crytic/dev-api-improvements
montyly Feb 13, 2023
977d7bf
Create static.yml
montyly Feb 13, 2023
ead5397
add github pages docs
0xalpharush Feb 11, 2023
5136af6
remove auto-generated docs
0xalpharush Feb 13, 2023
e65bab9
add pdoc to dev dependencies
0xalpharush Feb 13, 2023
63b4199
use static action
0xalpharush Feb 13, 2023
8f7b3e0
black format
0xalpharush Feb 13, 2023
edc7804
Update lint rules
montyly Feb 14, 2023
3383e39
Merge pull request #1656 from crytic/gh-pages-2
montyly Feb 14, 2023
8548bed
Merge pull request #1636 from crytic/simplify-enums
montyly Feb 14, 2023
f7e087d
Merge pull request #1640 from crytic/dev-types-2
montyly Feb 14, 2023
8052899
Merge pull request #1650 from crytic/ternary-func-arg
montyly Feb 14, 2023
6a3435f
Merge pull request #1637 from crytic/parallelize-tests
montyly Feb 14, 2023
c8c7566
Merge remote-tracking branch 'origin/dev-add-types' into HEAD
montyly Feb 14, 2023
04a6b0f
Merge pull request #1604 from bart1e/missing_references_fix
montyly Feb 14, 2023
9997808
Merge pull request #1611 from crytic/dev-yul-constant-variable
montyly Feb 14, 2023
c2cb22d
Merge pull request #1639 from crytic/no-warn-immut-string
montyly Feb 14, 2023
023464e
Merge pull request #1638 from crytic/add-path-to-lint
montyly Feb 14, 2023
fa2889d
Merge pull request #1641 from crytic/divide-before-multiply-todo
montyly Feb 14, 2023
28af162
Merge branch 'dev' into dev-add-types
montyly Feb 14, 2023
8bb4ffa
move assertion to proper branch
0xalpharush Feb 14, 2023
82f761c
Remove unused import
montyly Feb 15, 2023
1d52aea
Merge pull request #1535 from webthethird/slither/dev-upgradeability-…
montyly Feb 15, 2023
24df353
Merge branch 'detector_for_cc' of github.com:bart1e/slither into bart…
montyly Feb 15, 2023
d0c0a17
Minor improvements
montyly Feb 15, 2023
b0f9045
Merge branch 'dev' into dev-add-types
montyly Feb 15, 2023
b7ecc01
Cancel action on new commits
montyly Feb 15, 2023
485bae9
Merge pull request #1661 from crytic/dev-cancel-action-on-commit
montyly Feb 15, 2023
209a07c
Improvements to GH actions
montyly Feb 15, 2023
90efe7a
Merge pull request #1660 from crytic/bart1e-detector_for_cc
montyly Feb 15, 2023
9bd166f
Merge pull request #1662 from crytic/dev-ci-minor-improvements
montyly Feb 15, 2023
83d4d50
Merge branch 'dev' into dev-add-types
montyly Feb 15, 2023
8b6ac75
Improve types in detectors
montyly Feb 15, 2023
8aa6c2b
Further CI improvements
montyly Feb 15, 2023
af9bde0
Rename doctor
montyly Feb 15, 2023
a58fa3d
Run pylint only on new files
montyly Feb 15, 2023
d42a748
Use base ref branch for pylint
montyly Feb 15, 2023
797735c
Merge pull request #1663 from crytic/dev-further-ci-improvements
montyly Feb 15, 2023
486c9ec
Merge branch 'dev' into dev-add-types
montyly Feb 15, 2023
4e5e184
Fix last 0xalpharush comments
montyly Feb 15, 2023
abf9312
Minor
montyly Feb 15, 2023
18e094c
Minor
montyly Feb 15, 2023
20a7951
Merge pull request #1624 from crytic/dev-add-types
montyly Feb 15, 2023
3ad2633
add enums to echidna list of constants
samalws-tob Feb 15, 2023
9779380
Merge pull request #1665 from samalws/echidna-enum
montyly Feb 21, 2023
8135a23
improve TypeAlias support for echidna
smonicas Feb 22, 2023
56aaa4d
Fix TypeAlias in solidity signature
smonicas Feb 22, 2023
143223a
Add cyclomatic complexity to function-summary
smonicas Feb 23, 2023
05defa8
Add cyclomatic complexity to modifiers
smonicas Feb 23, 2023
dc7eb70
update and reorganize README
0xalpharush Feb 24, 2023
a65ce56
fix spelling
0xalpharush Feb 24, 2023
6356492
Merge pull request #1689 from crytic/0xalpharush-patch-1
montyly Feb 25, 2023
b74f64a
Merge pull request #1685 from crytic/dev-fun-summary-printer-complexity
montyly Feb 25, 2023
4474bc2
WIKI URL fixed
bart1e Feb 26, 2023
5f6551d
Black run
bart1e Feb 26, 2023
715826e
Update reentrancy_eth.py
sidarth16 Mar 3, 2023
331cc24
upgrade nix installation to fix CI installation
0xalpharush Mar 6, 2023
cd9b212
Merge pull request #1711 from crytic/CI-nix-install
montyly Mar 6, 2023
cf5e3be
Merge pull request #1695 from bart1e/detector_for_cc_fix
montyly Mar 6, 2023
9e7ff8f
support duplicated func name for diff types in global using for
0xalpharush Jan 24, 2023
fdd4232
only look for library functions in the current scope
0xalpharush Jan 25, 2023
166a8ce
add test files
0xalpharush Feb 9, 2023
3cc5510
fix import
0xalpharush Feb 9, 2023
1751091
add test
0xalpharush Mar 6, 2023
3c0ef74
fmt
0xalpharush Mar 6, 2023
1616f93
rm misc files
0xalpharush Mar 6, 2023
98d1c50
lint
0xalpharush Mar 7, 2023
36052fd
Sync cc@master
montyly Mar 8, 2023
a42c2cc
deregister_detector
sidarth16 Mar 8, 2023
4e2f1ac
deregister_printer
sidarth16 Mar 8, 2023
611798c
update deregister_detector()
sidarth16 Mar 8, 2023
181ee42
pylint: disable unidiomatic-typecheck
sidarth16 Mar 8, 2023
646fb1e
pylint: disable unidiomatic-typecheck
sidarth16 Mar 8, 2023
61b7feb
Merge pull request #1723 from crytic/dev-sync-cc
montyly Mar 8, 2023
9acddc3
include return variables in uninit ptr detector
0xalpharush Mar 8, 2023
e26a520
exclude storage params
0xalpharush Mar 8, 2023
65f1312
Merge pull request #1725 from crytic/unitialized-storage-fix
montyly Mar 8, 2023
09a9b90
restrict variable-scope detector to only solc 0.4.x
0xalpharush Mar 9, 2023
e483513
black
sidarth16 Mar 9, 2023
d5a8436
black
sidarth16 Mar 9, 2023
76d8321
Improve parsing of contract's comment
montyly Mar 9, 2023
3850cf5
renaming to unregister_detector()
sidarth16 Mar 9, 2023
a9d399f
Update README.md
montyly Mar 9, 2023
3691be0
Update README.md
montyly Mar 9, 2023
2cc92d7
Merge branch 'master' into dev
montyly Mar 9, 2023
275be58
isinstance()
sidarth16 Mar 10, 2023
9b69da1
isinstance()
sidarth16 Mar 10, 2023
660ccb9
rename to unregister_printer()
sidarth16 Mar 10, 2023
5498e1b
fix stdout capture
0xalpharush Mar 10, 2023
99cb0fb
Merge pull request #1739 from crytic/dev
montyly Mar 10, 2023
2d6c4ee
Merge pull request #1740 from crytic/fix-stdout-capture
montyly Mar 10, 2023
ed4eada
Merge branch 'master' into external-publications
montyly Mar 10, 2023
64b2e0c
Merge pull request #1738 from crytic/external-publications
montyly Mar 10, 2023
e11ae90
Merge pull request #1691 from crytic/low-level-call-conversion-fix
montyly Mar 10, 2023
ef2b707
Merge branch 'master' into HEAD
montyly Mar 10, 2023
528e2d2
Merge branch 'dev' into dev-echidna-usertype
montyly Mar 10, 2023
8c58abe
Fix linters
montyly Mar 10, 2023
d4a7254
Merge pull request #1510 from crytic/local-shadowing-return-vars
montyly Mar 10, 2023
76f86a1
Merge branch 'dev' into revert-1082-ignored-findings
montyly Mar 10, 2023
ae5af4e
Print warning
montyly Mar 10, 2023
6b1b4ed
Merge pull request #1690 from crytic/dev-echidna-usertype
montyly Mar 10, 2023
af39ca9
Merge pull request #1625 from crytic/using-for-global-lib-collision
montyly Mar 10, 2023
fc47bf2
Merge pull request #1643 from crytic/revert-1082-ignored-findings
montyly Mar 10, 2023
2f155e7
Improve tests from 1625
montyly Mar 10, 2023
20ca599
lint
0xalpharush Mar 10, 2023
295d128
Merge pull request #1731 from crytic/restrict-variable-scope
montyly Mar 10, 2023
829f7eb
Merge pull request #1741 from crytic/fix-1625
montyly Mar 10, 2023
7aba140
Test with legacy AST too
montyly Mar 10, 2023
12682c3
make slither-read-storage dependencies explicit
0xalpharush Mar 10, 2023
3861029
inspect whether package is installed
0xalpharush Mar 10, 2023
d9fda0b
make dev install read-storage deps
0xalpharush Mar 10, 2023
462da76
Merge pull request #1722 from sidarth16/patch-3
montyly Mar 10, 2023
6ff1774
Merge pull request #1724 from sidarth16/patch-4
montyly Mar 10, 2023
cb37650
Merge pull request #1734 from crytic/dev-contract-comment
montyly Mar 10, 2023
6236e54
Improve top level functions format
smonicas Mar 10, 2023
f67c96b
update filter-paths help
0xalpharush Mar 13, 2023
fc20b43
add abstract contract property
bsamuels453 Feb 22, 2023
94b42ee
change prop name to is_fully_implemented
bsamuels453 Mar 6, 2023
c08cbee
Add tests
montyly Mar 10, 2023
5a37d30
fmt
0xalpharush Mar 13, 2023
dc28a1e
fix merge mistake
0xalpharush Mar 13, 2023
9e79ec6
select solc version for test_ternary_conversions
0xalpharush Mar 13, 2023
ba6ef45
add import
0xalpharush Mar 13, 2023
517d36e
add issue template for false neg. and positive
0xalpharush Mar 14, 2023
4a69025
Update .github/ISSUE_TEMPLATE/false_negative.yml
0xalpharush Mar 14, 2023
137bee1
Merge pull request #1749 from crytic/filter-paths-help
montyly Mar 15, 2023
5c52921
Merge pull request #1744 from crytic/dev-printer-slithir-tl-format
montyly Mar 15, 2023
979f307
Merge pull request #1753 from crytic/fn-fp-templates
montyly Mar 15, 2023
a31282b
make web3>=6.0.0 a dependency
0xalpharush Mar 15, 2023
547a804
add bug revealing test for #1748
Troublor Mar 16, 2023
6eab0b2
fix #1748
Troublor Mar 16, 2023
096769b
Merge pull request #1743 from crytic/slr-deps
montyly Mar 16, 2023
cd1ec36
include salt in NewContract op, add test infra
0xalpharush Mar 16, 2023
20fbfd4
fix evm printer
0xalpharush Mar 17, 2023
d6adbca
update printer tests
0xalpharush Mar 17, 2023
bc65997
merge dev
0xalpharush Mar 17, 2023
8a01247
Merge pull request #1762 from crytic/fix-new-contract-reads
montyly Mar 17, 2023
f0603b4
Merge pull request #1765 from crytic/declaration-printer
montyly Mar 17, 2023
337ed45
Merge branch 'master' into dev
montyly Mar 17, 2023
9dccce3
update linter.yml name
0xalpharush Mar 17, 2023
400dfd6
Minor
montyly Mar 17, 2023
081056c
Merge pull request #1770 from crytic/0xalpharush-patch-1
montyly Mar 17, 2023
5869d74
Merge pull request #1768 from crytic/dev
montyly Mar 17, 2023
462396e
correct web3 to be required, not dev dep
0xalpharush Mar 17, 2023
d43580a
Merge pull request #1771 from crytic/fix-required-deps
montyly Mar 17, 2023
d35b10b
Merge pull request #1679 from crytic/abstract-contract
montyly Mar 17, 2023
785699e
Merge pull request #1706 from sidarth16/patch-2
montyly Mar 17, 2023
baf9005
Merge branch 'issue_1748' of github.com:Troublor/slither into Troublo…
montyly Mar 17, 2023
d128523
Merge pull request #1772 from crytic/Troublor-issue_1748
montyly Mar 17, 2023
b2240b8
Update solc version recommendations
montyly Mar 17, 2023
be68b6f
Improve error message
montyly Mar 17, 2023
fba4f7d
Minor
montyly Mar 17, 2023
1b601c5
Merge pull request #1773 from crytic/dev-solc
montyly Mar 17, 2023
efeea53
Update readme
montyly Mar 17, 2023
776dcab
Merge pull request #1774 from crytic/dev
montyly Mar 17, 2023
e6b8af8
0.9.3
montyly Mar 17, 2023
d98d102
Merge tag '0.9.3' into certik
Apr 8, 2023
b9edcc4
fix: reverted an upstream change (crytic/slither/pull/1761)
Apr 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 55 additions & 0 deletions .github/DISCUSSION_TEMPLATE/trouble_with_installation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
body:
-
attributes:
value: |
Please check the issues tab to avoid duplicates.
Thanks for taking the time to fill out this bug report!
type: markdown
-
attributes:
label: "What operating system are you using?"
id: os
type: textarea
validations:
required: true
-
attributes:
label: "How did you install slither?"
description: |
For example, using git or python's pip.
id: install-method
type: textarea
validations:
required: true
- type: dropdown
id: python
attributes:
label: Do you have python added to your $PATH?
multiple: true
options:
- "Yes"
- "No"
- "Not sure"
- type: dropdown
id: solc
attributes:
label: Do you have solc-select installed?
multiple: true
options:
- "Yes"
- "No"
-
attributes:
description: |
Please copy and paste any relevant log output. This
will be automatically formatted into code, so no need for backticks.
render: shell
label: "Output of running `slither-doctor .`:"
id: logs
type: textarea
description: "Get help troubleshooting slither installation"
labels:
- installation-help
name: "Trouble with Installing Slither"
title: "[Installation-Help]: "
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ body:
attributes:
value: |
Please check the issues tab to avoid duplicates.
If you are having difficulty installing slither,
please head over to the "Discussions" page.
Thanks for taking the time to fill out this bug report!
type: markdown
-
Expand Down
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/false_negative.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
body:
-
attributes:
value: |
Please check the issues tab to avoid duplicates.
Thanks for helping make Slither the best it can be!
type: markdown
-
attributes:
label: "What bug did Slither miss and which detector did you anticipate would catch it?"
id: what-happened
type: textarea
validations:
required: true
-
attributes:
label: Frequency
description: How often do you run across this false negative?
options:
- Very Frequently
- Occasionally
- Rarely
- Not sure
id: frequency
type: dropdown
validations:
required: true
-
attributes:
description: "It can be a github repo, etherscan link, or code snippet."
label: "Code example to reproduce the issue:"
placeholder: "`contract A {}`\n"
id: reproduce
type: textarea
validations:
required: true
-
attributes:
description: |
What version of slither are you running?
Run `slither --version`
label: "Version:"
id: version
type: textarea
validations:
required: true
-
attributes:
description: |
Please copy and paste the result output. This
will be automatically formatted into code, so no need for backticks.
render: shell
label: "Relevant log output:"
id: logs
type: textarea
description: "Slither missed a bug it should find."
labels:
- false-negative
name: False Negative"
title: "[False Negative]: "
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/false_positive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
body:
-
attributes:
value: |
Please check the issues tab to avoid duplicates.
Thanks for helping make Slither the best it can be!
type: markdown
-
attributes:
label: "Describe the false alarm that Slither raise and how you know it's inaccurate:"
id: what-happened
type: textarea
validations:
required: true
-
attributes:
label: Frequency
description: How often do you run across this false positive?
options:
- Very Frequently
- Occasionally
- Rarely
- Not sure
id: frequency
type: dropdown
validations:
required: true
-
attributes:
description: "It can be a github repo, etherscan link, or code snippet."
label: "Code example to reproduce the issue:"
placeholder: "`contract A {}`\n"
id: reproduce
type: textarea
validations:
required: true
-
attributes:
description: |
What version of slither are you running?
Run `slither --version`
label: "Version:"
id: version
type: textarea
validations:
required: true
-
attributes:
description: |
Please copy and paste the result output. This
will be automatically formatted into code, so no need for backticks.
render: shell
label: "Relevant log output:"
id: logs
type: textarea
description: "Slither warned of an issue that is not legitimate and does not need to be fixed."
labels:
- false-positive
name: "False Positive"
title: "[False-Positive]: "
6 changes: 5 additions & 1 deletion .github/workflows/IR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: IR tests
Expand All @@ -24,7 +28,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Lint Code Base
name: Run black

defaults:
run:
Expand All @@ -9,18 +9,27 @@ defaults:
on:
pull_request:
branches: [master, dev]
paths:
- "**/*.py"
schedule:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Lint Code Base
name: Black
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -47,7 +51,7 @@ jobs:
- os: windows-2022
type: truffle
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
Expand All @@ -63,7 +67,7 @@ jobs:

- name: Set up nix
if: matrix.type == 'dapp'
uses: cachix/install-nix-action@v16
uses: cachix/install-nix-action@v20

- name: Set up cachix
if: matrix.type == 'dapp'
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/detectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Detectors tests
Expand All @@ -24,7 +28,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand All @@ -38,4 +42,4 @@ jobs:
solc-select use 0.7.3 --always-install
- name: Test with pytest
run: |
pytest tests/test_detectors.py
pytest tests/test_detectors.py
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
tags:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docker:
runs-on: ubuntu-latest
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: docs

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- run: pip install -e ".[dev]"
- run: pdoc -o docs/ slither '!slither.tools' #TODO fix import errors on pdoc run
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload the doc
path: 'docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
6 changes: 5 additions & 1 deletion .github/workflows/doctor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: CI
name: Doctor

defaults:
run:
Expand All @@ -12,6 +12,10 @@ on:
- 'slither/tools/doctor/**'
- '.github/workflows/doctor.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
slither-doctor:
runs-on: ${{ matrix.os }}
Expand Down
Loading