Compare commits

..

1 Commits

Author SHA1 Message Date
Chris Farhood 5cf16bd173 fix(dual-approval): replace echo with printf to avoid jq parse errors (PRI-1757)
CI / ci (push) Failing after 2m27s
Promotion Gate / Promotion Gate (pull_request_review) Failing after 4m0s
CI / ci (pull_request) Failing after 1m14s
Promotion Gate / Promotion Gate (pull_request) Failing after 4m1s
2026-05-30 23:15:57 +00:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ permissions:
jobs:
ci:
runs-on: runners-privilegedescalation
runs-on: ubuntu-latest
timeout-minutes: 10
container: node:22-slim
+3 -3
View File
@@ -14,7 +14,7 @@ on:
jobs:
promotion-gate:
name: Promotion Gate
runs-on: runners-privilegedescalation
runs-on: ubuntu-latest
container: ubuntu:latest
timeout-minutes: 5
@@ -94,14 +94,14 @@ jobs:
exit 1
fi
REVIEWER_APPROVED=$(echo "${REVIEWS}" | jq -r --arg user "${REQUIRED_REVIEWER}" \
REVIEWER_APPROVED=$(printf '%s' "${REVIEWS}" | jq -r --arg user "${REQUIRED_REVIEWER}" \
'[.[] | select(.user.login == $user)] | last | if .state then .state == "APPROVED" else false end')
echo "${GATE_NAME} (${REQUIRED_REVIEWER}) approved: ${REVIEWER_APPROVED}"
# Fallback: check if CTO approved as alternative for uat→main
if [ "${REVIEWER_APPROVED}" != "true" ] && [ -n "${ALT_REVIEWER}" ]; then
REVIEWER_APPROVED=$(echo "${REVIEWS}" | jq -r --arg user "${ALT_REVIEWER}" \
REVIEWER_APPROVED=$(printf '%s' "${REVIEWS}" | jq -r --arg user "${ALT_REVIEWER}" \
'[.[] | select(.user.login == $user)] | last | if .state then .state == "APPROVED" else false end')
if [ "${REVIEWER_APPROVED}" = "true" ]; then
echo "CTO (${ALT_REVIEWER}) approved as fallback for UAT gate."
+1 -1
View File
@@ -5,7 +5,7 @@ on:
workflow_dispatch:
jobs:
renovate:
runs-on: runners-privilegedescalation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: renovatebot/github-action@v40.3.0