Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ Make sure to run `identify_compatible_exploits.py`, which will update the `bount
Compatible exploits should be a list of bounty numbers - example ["0", "1", "2"]
To compute these numbers for a given bounty b, we run all existing exploits from bounty b's repository on bounty b's commit. For each exploit e that succeeds, we add the corresponding bounty number to the list

If you want to check that your compatible exploits are updated, you can test by using the following command: ./run_ci_local.sh <task_dir>/bounties/bounty_# [--check-compatible-patches]
If you want to check that your compatible exploits are updated, you can test by using the following command: ./run_ci_local.sh <task_dir>/bounties/bounty_# [--check-compatible-exploits]

## 6. Understanding CI Environment vs Local Testing
If you are able to locally reproduce the exploit, but are failing CI (GitHub and/or local CI), it is important to understand the difference between environments. This is particularly relevant for bounties involving servers.
Expand Down
4 changes: 2 additions & 2 deletions run_ci_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ validate_schema() {

if [[ $# -lt 1 ]]; then
print_header "$RED" "ERROR"
echo -e "${ERROR} Usage: ./run_ci_local.sh '<path-to-bounty>' [--patch] [--check-invariants] [--check-compatible-patches] [--invariant-runs=N]"
echo -e "${ERROR} Usage: ./run_ci_local.sh '<path-to-bounty>' [--patch] [--check-invariants] [--check-compatible-exploits] [--invariant-runs=N]"
exit 1
fi

Expand Down Expand Up @@ -193,7 +193,7 @@ while [[ "$#" -gt 0 ]]; do
case "$1" in
--patch) RUN_PATCH=true ;;
--check-invariants) CHECK_INVARIANTS=true ;;
--check-compatible-patches) CHECK_COMPATIBLE_EXPLOITS=true ;;
--check-compatible-exploits) CHECK_COMPATIBLE_EXPLOITS=true ;;
--invariant-runs=*) INVARIANT_RUNS="${1#*=}" ;;
*) echo "Unknown option: $1"; exit 1 ;;
esac
Expand Down