Skip to content

Commit e105087

Browse files
hyperpolymathclaude
andcommitted
fix(ci): handle hypatia-cli.sh non-zero exit on findings
hypatia-cli.sh exits 1 when issues are found, which is expected scanner behavior. Add || true so the workflow continues to the jq processing, artifact upload, and reporting steps. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 66716da commit e105087

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/hypatia-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
run: |
3737
echo "Scanning repository: ${{ github.repository }}"
3838
39-
# Run scanner
40-
HYPATIA_FORMAT=json "$HOME/hypatia/hypatia-cli.sh" scan . > hypatia-findings.json
39+
# Run scanner (exits non-zero when findings exist, which is expected)
40+
HYPATIA_FORMAT=json "$HOME/hypatia/hypatia-cli.sh" scan . > hypatia-findings.json || true
4141
4242
# Count findings
4343
FINDING_COUNT=$(jq '. | length' hypatia-findings.json 2>/dev/null || echo 0)

0 commit comments

Comments
 (0)