Skip to content

Commit

Permalink
do not fail if Slither fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Aug 9, 2024
1 parent 00d4439 commit edfbebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/scripts/ci/generate_slither_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ run_slither() {
>&2 echo "::error::Failed to select Solc version for $FILE"
return 1
fi
set -e

SLITHER_OUTPUT_FILE="$TARGET_DIR/$(basename "${FILE%.sol}")-slither-report.md"

output=$(slither --config-file "$CONFIG_FILE" "$FILE" --checklist --markdown-root "$REPO_URL" --fail-none $SLITHER_EXTRA_PARAMS)
if [ $? -ne 0 ]; then
>&2 echo "::error::Slither failed for $FILE"
exit 1
>&2 echo "::warning::Slither failed for $FILE"
return 0
fi
set -e
output=$(echo "$output" | sed '/\*\*THIS CHECKLIST IS NOT COMPLETE\*\*. Use `--show-ignored-findings` to show all the results./d' | sed '/Summary/d')

echo "# Summary for $FILE" > "$SLITHER_OUTPUT_FILE"
Expand Down

0 comments on commit edfbebd

Please sign in to comment.