Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 011264a87b | |||
| a2d18c18d8 | |||
| b5151db0ac | |||
| 5cd46571f2 | |||
| 1233d80c8f | |||
| 89fb02cdea | |||
| 72f2568b68 | |||
| 8a49fc57f1 | |||
| a0be839632 | |||
| d5c5d2b6ba | |||
| 3198b21683 | |||
| ca1a732033 | |||
| 0977a7c3b3 | |||
| eb436e2c31 | |||
| 21fba7a842 | |||
| 70398efeea | |||
| 806843b9c7 | |||
| 91ab376f38 | |||
| 3496653d33 | |||
| 02b732e24c | |||
| 1099037db1 | |||
| 8c37c764e9 | |||
| 6f392bbbed | |||
| 4a63bc1da8 | |||
| ca423073f1 | |||
| 8bf80a9890 | |||
| a520a65f1b | |||
| bb8d7f159c | |||
| a92f578dcf |
@@ -0,0 +1 @@
|
||||
# CI trigger 20260525231507 - post-DinD verification (CAR-1042)
|
||||
+12
-31
@@ -67,31 +67,11 @@ jobs:
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Scan Docker image
|
||||
uses: anchore/scan-action@v5
|
||||
id: scan
|
||||
env:
|
||||
GRYPE_CONFIG: .grype.yaml
|
||||
with:
|
||||
image: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}"
|
||||
fail-build: true
|
||||
severity-cutoff: high
|
||||
only-fixed: "true"
|
||||
output-format: sarif
|
||||
|
||||
- name: Push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
# CAR-1446: git.farh.net does not implement the OCI referrers API.
|
||||
# Verified 2026-06-23: GET /v2/cartsnitch/auth/referrers/{digest} →
|
||||
# HTTP 404 "page not found" (plain proxy 404, not an OCI error — the path
|
||||
# does not exist in this Gitea registry version). OCI Distribution Spec
|
||||
# >=1.1 is required for provenance/SBOM attestation manifests; without it
|
||||
# the docker/build-push-action would fail at the attestation PUT.
|
||||
# Compensating control: the Grype scan step above fails the build on any
|
||||
# unfixed HIGH-severity CVE before the image reaches the registry.
|
||||
provenance: false
|
||||
sbom: false
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
@@ -163,7 +143,7 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
TITLE="ci(dev): update auth image (${GITHUB_SHA::12})"
|
||||
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base main --arg title "$TITLE" --arg body "Bumps apps/overlays/dev/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
||||
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base dev --arg title "$TITLE" --arg body "Bumps apps/overlays/dev/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
||||
'{head: $head, base: $base, title: $title, body: $body}')
|
||||
PR_JSON=$(curl -sS -X POST \
|
||||
-H "Authorization: token ${CI_GITEA_TOKEN}" \
|
||||
@@ -197,11 +177,12 @@ jobs:
|
||||
MERGED=$(echo "$MERGE_RESP" | jq -r '.merged // false')
|
||||
if [ "$MERGED" = "true" ]; then
|
||||
echo "PR #${PR_NUM} merged into cartsnitch/infra dev"
|
||||
else
|
||||
# CAR-1438: PR opened successfully; any non-merged outcome (empty body,
|
||||
# approval-gate, pending checks) is the GitOps gate — not a failure.
|
||||
echo "::notice::infra PR #${PR_NUM} opened — auto-merge not available (${MERGE_RESP:-empty response}); awaiting CTO (cs_savannah) approve+merge"
|
||||
elif echo "$MERGE_RESP" | grep -qi 'does not have enough approvals'; then
|
||||
echo "::notice::infra PR #${PR_NUM} opened and awaiting CTO (cs_savannah) approve+merge — GitOps approval gate, not a failure"
|
||||
exit 0
|
||||
else
|
||||
echo "::error::Auto-merge of cartsnitch/infra PR #${PR_NUM} failed: $MERGE_RESP"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
deploy-uat:
|
||||
@@ -264,7 +245,7 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
TITLE="ci(uat): update auth image (${GITHUB_SHA::12})"
|
||||
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base main --arg title "$TITLE" --arg body "Bumps apps/overlays/uat/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
||||
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base uat --arg title "$TITLE" --arg body "Bumps apps/overlays/uat/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
||||
'{head: $head, base: $base, title: $title, body: $body}')
|
||||
PR_JSON=$(curl -sS -X POST \
|
||||
-H "Authorization: token ${CI_GITEA_TOKEN}" \
|
||||
@@ -294,10 +275,10 @@ jobs:
|
||||
MERGED=$(echo "$MERGE_RESP" | jq -r '.merged // false')
|
||||
if [ "$MERGED" = "true" ]; then
|
||||
echo "PR #${PR_NUM} merged into cartsnitch/infra uat"
|
||||
else
|
||||
# CAR-1438: PR opened successfully; any non-merged outcome (empty body,
|
||||
# approval-gate, pending checks) is the GitOps gate — not a failure.
|
||||
echo "::notice::infra PR #${PR_NUM} opened — auto-merge not available (${MERGE_RESP:-empty response}); awaiting CTO (cs_savannah) approve+merge"
|
||||
elif echo "$MERGE_RESP" | grep -qi 'does not have enough approvals'; then
|
||||
echo "::notice::infra PR #${PR_NUM} opened and awaiting CTO (cs_savannah) approve+merge — GitOps approval gate, not a failure"
|
||||
exit 0
|
||||
else
|
||||
echo "::error::Auto-merge of cartsnitch/infra PR #${PR_NUM} failed: $MERGE_RESP"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Generated
+6
-6
@@ -818,9 +818,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/defu": {
|
||||
"version": "6.1.7",
|
||||
"resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz",
|
||||
"integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==",
|
||||
"version": "6.1.4",
|
||||
"resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz",
|
||||
"integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/esbuild": {
|
||||
@@ -909,9 +909,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/kysely": {
|
||||
"version": "0.28.17",
|
||||
"resolved": "https://registry.npmjs.org/kysely/-/kysely-0.28.17.tgz",
|
||||
"integrity": "sha512-nbD8lB9EB3wNdMhOCdx5Li8DxnLbvKByylRLcJ1h+4SkrowVeECAyZlyiKMThF7xFdRz0jSQ2MoJr+wXux2y0Q==",
|
||||
"version": "0.28.14",
|
||||
"resolved": "https://registry.npmjs.org/kysely/-/kysely-0.28.14.tgz",
|
||||
"integrity": "sha512-SU3lgh0rPvq7upc6vvdVrCsSMUG1h3ChvHVOY7wJ2fw4C9QEB7X3d5eyYEyULUX7UQtxZJtZXGuT6U2US72UYA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
|
||||
+1
-6
@@ -21,10 +21,5 @@
|
||||
"@types/pg": "^8.11.0",
|
||||
"tsx": "^4.19.0",
|
||||
"typescript": "^5.7.0"
|
||||
},
|
||||
"overrides": {
|
||||
"picomatch": "^4.0.4",
|
||||
"defu": "^6.1.5",
|
||||
"kysely": "^0.28.17"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user