workflow: trim PORTING_TOKEN (paste newlines break oauth2 auth) + fail loudly when missing
Some checks failed
port-to-omp / port (push) Failing after 3s

This commit is contained in:
2026-08-10 16:44:53 -04:00
parent 2a2155e871
commit 99eef89a9d

View File

@@ -32,6 +32,10 @@ jobs:
OMP_REPO: omp-deepi-research
run: |
set -euo pipefail
# Trim the secret: a stray newline from pasting silently breaks
# oauth2 basic-auth. Fail loudly when it is missing entirely.
PORTING_TOKEN="$(printf '%s' "${PORTING_TOKEN}" | tr -d '[:space:]')"
: "${PORTING_TOKEN:?PORTING_TOKEN secret is not set}"
URL="https://oauth2:${PORTING_TOKEN}@git.freno.me/Mike/${OMP_REPO}.git"
# The omp checkout lives in $RUNNER_TEMP, outside the pi checkout:
# the port script refuses to write into a subdirectory of its own