ci: access private at-mintel with a read token, vendor smoke-test action
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🧪 QA (push) Successful in 2m1s
🚀 Build & Deploy / 🏗️ Build (push) Successful in 4m9s
🚀 Build & Deploy / 🚀 Deploy (push) Successful in 9s
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 59s
🚀 Build & Deploy / 🔔 Notify (push) Successful in 2s

mmintel/at-mintel is now private (its committed .env was publicly readable),
so anonymous ls-remote/clone/raw access fails. Use the read-only
MINTEL_PRIVATE_TOKEN secret for every access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

The core-smoke-tests action is vendored because the runner cannot fetch actions from a private repo.
This commit is contained in:
2026-12-03 10:42:34 +01:00
co-authored by Claude Opus 5.5
parent bf6bc2174c
commit 43e4f09d34
2 changed files with 51 additions and 8 deletions
+10 -8
View File
@@ -110,21 +110,22 @@ jobs:
TAG_TO_WAIT="v$UPSTREAM_VERSION"
if [[ -n "$UPSTREAM_VERSION" && "$UPSTREAM_VERSION" != "workspace:"* ]]; then
# 1. Discovery (Works without token for public repositories)
UPSTREAM_SHA=$(git ls-remote --tags https://git.infra.mintel.me/mmintel/at-mintel.git "$TAG_TO_WAIT" | grep "$TAG_TO_WAIT" | tail -n1 | awk '{print $1}')
# mmintel/at-mintel is private: every access needs a read token (MINTEL_PRIVATE_TOKEN).
POLL_TOKEN="${{ secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}"
# 1. Discovery
UPSTREAM_SHA=$(git ls-remote --tags "https://ci:${POLL_TOKEN}@git.infra.mintel.me/mmintel/at-mintel.git" "$TAG_TO_WAIT" | grep "$TAG_TO_WAIT" | tail -n1 | awk '{print $1}')
if [[ -z "$UPSTREAM_SHA" ]]; then
echo "❌ Error: Tag $TAG_TO_WAIT not found in mmintel/at-mintel."
exit 1
fi
echo "✅ Tag verified: Found upstream SHA $UPSTREAM_SHA for $TAG_TO_WAIT"
# 2. Status Check (Requires PAT for cross-repo API access)
POLL_TOKEN="${{ secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}"
# 2. Status Check
if [[ -n "$POLL_TOKEN" ]]; then
echo "⏳ POLL_TOKEN found. Checking upstream build status..."
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
curl -sf -H "Authorization: token $POLL_TOKEN" \
"https://git.infra.mintel.me/mmintel/at-mintel/raw/branch/main/packages/infra/scripts/wait-for-upstream.sh" > wait-for-upstream.sh
chmod +x wait-for-upstream.sh
GITEA_TOKEN="$POLL_TOKEN" ./wait-for-upstream.sh "mmintel/at-mintel" "$TAG_TO_WAIT"
@@ -400,7 +401,8 @@ jobs:
- name: 🌐 Core Smoke Tests (HTTP, API, Locale)
if: always() && steps.deps.outcome == 'success'
uses: https://git.infra.mintel.me/mmintel/at-mintel/.gitea/actions/core-smoke-tests@main
# vendored from mmintel/at-mintel (private repo, the runner cannot fetch actions from it)
uses: ./.gitea/actions/core-smoke-tests
with:
TARGET_URL: ${{ needs.prepare.outputs.next_public_url }}
GATEKEEPER_PASSWORD: ${{ secrets.GATEKEEPER_PASSWORD || vars.GATEKEEPER_PASSWORD }}