Skip to content

fix(scripts): apply-repo-settings treats a 404 from vulnerability-alerts as 'disabled', not a failure - #94

Merged
bketelsen merged 1 commit into
mainfrom
apply-repo-settings/alerts-404
Aug 19, 2026
Merged

bketelsen merged 1 commit into
mainfrom
apply-repo-settings/alerts-404

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Dry runs on snowcat and std stopped without a word right after the workflow-permissions step: gh api -i repos/…/vulnerability-alerts returns 404 when alerts are disabled and exits 1, and set -e killed the script at that assignment. The 404 is the answer the next line wants ("disabled → plan PUT"), so it is now tolerated; every other gh api in the script still aborts on failure as it should.

Verified: dry run on frostyard/snowcat now reaches the rulesets and plans PUT vulnerability-alerts.

🤖 Generated with Claude Code

…rts as 'disabled', not a failure

gh api -i exits non-zero on the 404, and under set -e the assignment
aborted the script silently — on exactly the repositories where alerts
still need enabling.

Co-Authored-By: Claude Fable 5 <[email protected]>
@bketelsen
bketelsen merged commit 59a66cf into main Aug 19, 2026
@bketelsen
bketelsen deleted the apply-repo-settings/alerts-404 branch August 19, 2026 03:00
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.

1 participant