-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cc7632
commit e510a8f
Showing
18 changed files
with
165 additions
and
95 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
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,53 @@ | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
name: Config | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }}-config | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
reports-setup: | ||
name: Check Config | ||
runs-on: ubuntu-latest | ||
outputs: | ||
rust-nightly: nightly-2025-01-01 | ||
|
||
steps: | ||
- name: Install Foundry Toolchain | ||
uses: foundry-rs/foundry-toolchain@v1.2.0 | ||
|
||
- name: Checkout Sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust Nightly (2025-01-01) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly-2025-01-01 | ||
override: true | ||
|
||
- name: Cache Rust Dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Checkout Submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
|
||
- name: Checkout Sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Initialize config | ||
run: | | ||
mkdir config-test | ||
cd config-test | ||
cargo run -- init | ||
diff ./aderyn.toml ../aderyn/templates/aderyn.toml |
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,22 @@ | ||
# Runs `cargo update` periodically. | ||
# Reference: | ||
# https://github.com/paradigmxyz/solar/blob/main/.github/workflows/dependencies.yml | ||
|
||
name: Dependencies | ||
|
||
on: | ||
schedule: | ||
# Run weekly | ||
- cron: "0 0 * * SUN" | ||
workflow_dispatch: | ||
# Needed so we can run it manually | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
update: | ||
uses: ithacaxyz/ci/.github/workflows/cargo-update-pr.yml@dev | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
# Aderyn Configuration File | ||
# This is a sample configuration for Aderyn | ||
# Help Aderyn work with more granular control | ||
|
||
# The root directory of smart contracts | ||
# root = "." | ||
# DO NOT CHANGE version below. As of now, only 1 is supported | ||
version = 1 | ||
|
||
# By default, aderyn will try to extract the following values based on the framework that is being used. | ||
# However, if you want to be explicit consider mentioning them. | ||
# Read the description carefully and uncomment the examples in each paragraph should you consider using them. | ||
|
||
# The source directory containing the Solidity contracts. | ||
# This is often "contracts/" or "src/" | ||
# Base path for resolving remappings and compiling smart contracts, relative to workspace-root (directory in which the editor is open) | ||
# Most of the time, you want to point it to the directory containing foundry.toml or hardhat.config.js/ts. | ||
root = "." | ||
|
||
# Path of source directory containing the contracts, relative to root (above) | ||
# Aderyn traverse all the nested files inside scanning for vulnerabilities | ||
# If not specified, Aderyn will try to extract it from the framework that is being used. (Foundry / Hardhat) | ||
# That would be "contracts/" in case of Hardhat and in case of Foundry, it depends on foundry.toml and | ||
# many other factors like FOUNDRY_PROFILE environment variable used when starting VS Code, etc. | ||
# Please feel free to always specify the values explicitly. | ||
# Example: | ||
# src = "src/" | ||
|
||
# Contract files to include in the analysis. | ||
# This is a list of strings representing the file paths of the contracts to include. | ||
# Path segments of contract files to include in the analysis. | ||
# It can be a partial match like "/interfaces/", which will include all files with "/interfaces/" in the file path. | ||
# Or it can be a full match like "Counter.sol", which will include only the file with the exact file. | ||
# Or it can be a full match like "src/counters/Counter.sol", which will include only the file with the exact path. | ||
# If not specified, all contract files in the source directory will be included. | ||
# Example: | ||
# include = ["Counter.sol"] | ||
# include = [] | ||
# include = ["src/counters/Counter.sol", "src/others/"] | ||
# include = ["/interfaces/"] | ||
|
||
# Contract files to exclude from the analysis. | ||
# This is a list of strings representing the file paths of the contracts to exclude. | ||
# Path segments of contract files to exclude in the analysis. | ||
# It can be a partial match like "/interfaces/", which will exclude all files with "/interfaces/" in the file path. | ||
# Or it can be a full match like "Counter.sol", which will exclude only the file with the exact file. | ||
# Or it can be a full match like "src/counters/Counter.sol", which will exclude only the file with the exact path. | ||
# If not specified, no contract files will be excluded. | ||
# Example: | ||
# exclude = ["src/counters/Counter.sol", "src/others/"] | ||
# exclude = ["/interfaces/"] | ||
# exclude = [] | ||
|
||
## Remappings used for compiling the contracts. | ||
# Remappings used for compiling the contracts. | ||
# If not specified, Aderyn will try to derive the values from foundry.toml (if present.) | ||
# That would be the result of calling `foundry remappings` | ||
# Example: | ||
# remappings = ["@oz/contracts=lib/openzeppelin-contracts/contracts"] |
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
Oops, something went wrong.