Files
computer-playbook/scripts/meta/debug/auth_mode.sh
T
kevinveenbirkenbachandClaude Sonnet 4.6 9a2878e109 refactor(ci): extract debug auth mode step into separate script
Move inline shell from entry-pull-request-change.yml into
scripts/meta/debug/auth_mode.sh and pass secrets via env vars.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 22:08:34 +02:00

17 lines
337 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [ -n "${GHCR_PAT:-}" ]; then
echo "Auth mode: GHCR_PAT"
else
echo "Auth mode: GITHUB_TOKEN"
fi
if [ -n "${GHCR_USERNAME:-}" ]; then
echo "GHCR_USERNAME is set"
echo "Username: ${GHCR_USERNAME}"
else
echo "GHCR_USERNAME not set"
echo "Fallback username (github.actor): ${GITHUB_ACTOR}"
fi