fix: production hardening for merge races, timeouts, and webhook ops

Pin merge SHA, lock conflict repair, bound subprocess/proxy output,
fail-fast incomplete R2/webhook config, redact validation/stderr
secrets, and document that webhook 202 is best-effort after ACK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
wdawdwaandClaude Opus 4.8 committed 2026-08-23 15:44:08 +08:00
1 parent d6f33a71c3
commit 039acabd96
29 files changed
+1163 -240

No files matched your search

+8 -8
View File
@@ -158,6 +158,10 @@ on:
required: false
type: string
default: "120000"
runtime_directory:
required: false
type: string
default: ""
log_level:
required: false
type: string
@@ -177,12 +181,6 @@ on:
required: false
GH_APP_INSTALLATION_ID:
required: false
GITHUB_APP_ID:
required: false
GITHUB_APP_PRIVATE_KEY:
required: false
GITHUB_APP_INSTALLATION_ID:
required: false
R2_ACCESS_KEY_ID:
required: false
R2_SECRET_ACCESS_KEY:
@@ -224,7 +222,7 @@ jobs:
GOOSE_BIN_DIR: ${{ runner.temp }}/goose/bin
CONFIGURE: "false"
run: |
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
curl -fsSL "https://github.com/aaif-goose/goose/releases/download/${GOOSE_VERSION}/download_cli.sh" | bash
echo "${GOOSE_BIN_DIR}" >> "${GITHUB_PATH}"
- run: npm ci
working-directory: ghbot-runtime
@@ -264,6 +262,7 @@ jobs:
MERGE_METHOD: ${{ inputs.merge_method }}
REQUIRE_CHECKS: ${{ inputs.require_checks }}
MAX_PATCH_CHARS: ${{ inputs.max_patch_chars }}
GHBOT_RUNTIME_DIR: ${{ inputs.runtime_directory }}
LOG_LEVEL: ${{ inputs.log_level }}
GHBOT_EVENT_NAME: ${{ inputs.event_name }}
GHBOT_EVENT_ACTION: ${{ inputs.event_action }}
@@ -299,7 +298,7 @@ jobs:
GOOSE_BIN_DIR: ${{ runner.temp }}/goose/bin
CONFIGURE: "false"
run: |
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
curl -fsSL "https://github.com/aaif-goose/goose/releases/download/${GOOSE_VERSION}/download_cli.sh" | bash
echo "${GOOSE_BIN_DIR}" >> "${GITHUB_PATH}"
- run: npm ci
working-directory: ghbot-runtime
@@ -339,6 +338,7 @@ jobs:
MERGE_METHOD: ${{ inputs.merge_method }}
REQUIRE_CHECKS: ${{ inputs.require_checks }}
MAX_PATCH_CHARS: ${{ inputs.max_patch_chars }}
GHBOT_RUNTIME_DIR: ${{ inputs.runtime_directory }}
LOG_LEVEL: ${{ inputs.log_level }}
GHBOT_EVENT_NAME: schedule
GHBOT_EVENT_ACTION: schedule