Skip to content

Guard check-mode ruleset_id and correct its header comment - #411

Merged
ptr727 merged 1 commit into
developfrom
configure-checkmode-guard-and-header
Jul 23, 2026
Merged

Guard check-mode ruleset_id and correct its header comment#411
ptr727 merged 1 commit into
developfrom
configure-checkmode-guard-and-header

Conversation

@ptr727

@ptr727 ptr727 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Follow-up to #409, from Copilot's review of the promotion PR #410.

  • check_ruleset invoked ruleset_id unguarded, so its non-zero return (API error, or the new per_page-cap abort) would exit the auditor via set -e instead of recording a FAIL and continuing. Now wrapped in if ! id=...; then fail; return; fi, consistent with the sibling gh-read guards. Apply mode's call stays unguarded on purpose (aborting before a duplicate write is correct there).
  • ruleset_id header comment now states the per_page-cap abort path.

Copilot on the promotion PR caught that check_ruleset invokes ruleset_id
unguarded, so its non-zero return (API error, or the new per_page-cap abort)
would exit the auditor via set -e instead of recording a FAIL and continuing -
inconsistent with the sibling gh-read guards. Wrap it in an if/fail/return.
Update the ruleset_id header to state the per_page-cap abort path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 23, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a small hardening/follow-up change to repo-config/configure.sh to keep the check path resilient when GitHub API lookups fail, so the auditor records a FAIL and continues instead of exiting early due to set -e.

Changes:

  • Guard check_ruleset's ruleset_id lookup so a non-zero return is handled as a recorded failure rather than aborting the script.
  • Clarify the ruleset_id header comment to explicitly document that it aborts at the per_page=100 cap (in addition to API errors).

@ptr727
ptr727 merged commit c062eb3 into develop Jul 23, 2026
7 checks passed
ptr727 added a commit that referenced this pull request Jul 23, 2026
…fixes (#410)

Carries #408 (PhotoCleaner round-2), #409 (finmod rounds 1-2 write-safety carve-out + configure.sh guards), #411 (check-mode ruleset_id guard), #412 (DSC verbatim semicolon sweep). Merge commit, no release.
@ptr727
ptr727 deleted the configure-checkmode-guard-and-header branch July 23, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants