Skip to content

Commit

Permalink
Staging v0.0.13 (#138)
Browse files Browse the repository at this point in the history
Co-authored-by: Tilak Madichetti <[email protected]>
  • Loading branch information
alexroan and TilakMaddy authored Feb 8, 2024
1 parent 5d7eb06 commit 74c2bff
Show file tree
Hide file tree
Showing 72 changed files with 2,335 additions and 1,231 deletions.
42 changes: 32 additions & 10 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,28 @@ jobs:
cat report2.json
diff report.json report2.json
- name: Generate report3.json
uses: actions-rs/cargo@v1
with:
command: run
args: -- --config-file ./tests/aderyn.config.json -o report3.json ./tests/contract-playground/

- name: Check report-config.json vs report3.json
run: |
cat report3.json
diff report-config.json report3.json
- name: Generate report3.md
uses: actions-rs/cargo@v1
with:
command: run
args: -- --config-file ./tests/aderyn.config.json -o report3.md ./tests/contract-playground/

- name: Check report-config.md vs report3.md
run: |
cat report3.md
diff report-config.md report3.md
- name: Generate bot results
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -108,37 +130,37 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: run
args: --bin bot_fw_assembler -- dev ../../aderyn_driver
args: --bin bot_fw_assembler -- dev ../aderyn_driver

- name: Create a bot with nyth
uses: actions-rs/cargo@v1
with:
command: run
args: --bin nyth -- new bot_ci_cd
args: --bin nyth -- init bot_ci_cd

- name: Build the bot
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./bot_ci_cd/bot/Cargo.toml
args: --manifest-path ./bot_ci_cd/Cargo.toml

- name: Add a detector to the bot
uses: actions-rs/cargo@v1
with:
command: run
args: --bin nyth -- generate bot_ci_cd/bot/src/no_zero_address_check
- name: Add detectors to the bot
run: |
cd bot_ci_cd
../target/debug/nyth new issue my_issue_detector_thing
../target/debug/nyth new reusable my_reusable_thing
- name: Build the bot again
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./bot_ci_cd/bot/Cargo.toml
args: --manifest-path ./bot_ci_cd/Cargo.toml

- name: Test the bot
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path ./bot_ci_cd/bot/Cargo.toml
args: --manifest-path ./bot_ci_cd/Cargo.toml


lints:
Expand Down
45 changes: 38 additions & 7 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ members = [
resolver="1"

exclude = [
"bot_ci_cd/bot"
"bot_ci_cd"
]
6 changes: 4 additions & 2 deletions aderyn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aderyn"
version = "0.0.12"
version = "0.0.13"
edition = "2021"
authors = ["Alex Roan <[email protected]>"]
description = "Rust based Solidity AST analyzer"
Expand All @@ -10,5 +10,7 @@ default-run = "aderyn"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
aderyn_driver = { path = "../aderyn_driver", version = "0.0.12" }
aderyn_driver = { path = "../aderyn_driver", version = "0.0.13" }
clap = { version = "4.4.6", features = ["derive"] }
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0.96"
Loading

0 comments on commit 74c2bff

Please sign in to comment.