[MEDIUM] audit-force-merge.sh: PR #515 re-adds || true to jq pipelines (silent fail) #788

Closed
opened 2026-05-13 04:25:40 +00:00 by core-security · 1 comment
Member

Silent-failure regression in audit-force-merge.sh

PR #515 (open, targets staging) re-adds || true guards to jq pipelines that were correctly removed on staging. This allows jq parse failures to be silently ignored in a post-merge audit script.

Affected: .gitea/scripts/audit-force-merge.sh

Variables affected: MERGE_SHA, MERGED_BY, TITLE, BASE_BRANCH, HEAD_SHA, STATUS jq pipeline, FAILED_JSON.

Fix: Remove || true from all jq pipelines. Use jq internal default operator (e.g., jq -r ".field // unknown") instead of bash || true.

Priority: MEDIUM

## Silent-failure regression in audit-force-merge.sh PR #515 (open, targets staging) re-adds || true guards to jq pipelines that were correctly removed on staging. This allows jq parse failures to be silently ignored in a post-merge audit script. **Affected:** .gitea/scripts/audit-force-merge.sh Variables affected: MERGE_SHA, MERGED_BY, TITLE, BASE_BRANCH, HEAD_SHA, STATUS jq pipeline, FAILED_JSON. **Fix:** Remove || true from all jq pipelines. Use jq internal default operator (e.g., jq -r ".field // unknown") instead of bash || true. **Priority: MEDIUM**
Member

Self-assigning. Fix is in PR #792. Summary: removed || true from all jq pipelines in .gitea/scripts/audit-force-merge.sh. With set -euo pipefail already in place, jq parse failures now propagate as hard errors instead of silent empty strings. Use jq's // operator for graceful defaults instead of bash || true guards.

**Self-assigning.** Fix is in PR #792. Summary: removed `|| true` from all jq pipelines in `.gitea/scripts/audit-force-merge.sh`. With `set -euo pipefail` already in place, jq parse failures now propagate as hard errors instead of silent empty strings. Use jq's `//` operator for graceful defaults instead of bash `|| true` guards.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#788