Skip to content

Commit 367fcd5

Browse files
committed
fix(echidna): update grep pattern for Echidna report output
- Modified the grep command in the security workflow to reflect the change in Echidna's output from "passed" to "passing", ensuring accurate counting of test results. - Improved comments for clarity regarding the output format of the Echidna report.
1 parent aa1c854 commit 367fcd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/security-echidna.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ jobs:
154154
working-directory: packages/smart-contracts
155155
run: |
156156
# Count passed and failed properties
157-
PASSED=$(grep -c "echidna.*: passed" reports/security/echidna-report.txt 2>/dev/null || echo "0")
157+
# Note: Echidna 2.x outputs "passing" not "passed"
158+
PASSED=$(grep -c "echidna.*: passing" reports/security/echidna-report.txt 2>/dev/null || echo "0")
158159
FAILED=$(grep -c "echidna.*: failed" reports/security/echidna-report.txt 2>/dev/null || echo "0")
159160
160161
# Ensure variables are single line and numeric

0 commit comments

Comments
 (0)