Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/strix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ jobs:
PROVIDER_MODE: ${{ steps.gate.outputs.provider_mode }}
run: |
set -euo pipefail
source "$TRUSTED_STRIX_SOURCE/scripts/ci/load_contextual_orchestrator_token.sh"
if [ "$PROVIDER_MODE" != "contextual_orchestrator" ]; then
echo '::error::Strix must use the contextual-orchestrator provider.'
exit 1
fi
source "$TRUSTED_STRIX_SOURCE/scripts/ci/load_contextual_orchestrator_token.sh"
# Sanitize CR/LF before masking to prevent broken ::add-mask::
# commands and potential workflow command injection.
sanitized="$(printf '%s' "${CONTEXTUAL_ORCHESTRATOR_TOKEN:-}" | tr -d '\r\n')"
Expand All @@ -673,11 +673,11 @@ jobs:
PROVIDER_MODE: ${{ steps.gate.outputs.provider_mode }}
run: |
set -euo pipefail
source "$TRUSTED_STRIX_SOURCE/scripts/ci/load_contextual_orchestrator_token.sh"
if [ "$PROVIDER_MODE" != "contextual_orchestrator" ]; then
echo '::error::Strix must use the contextual-orchestrator provider.'
exit 1
fi
source "$TRUSTED_STRIX_SOURCE/scripts/ci/load_contextual_orchestrator_token.sh"
sanitized="$(printf '%s' "${CONTEXTUAL_ORCHESTRATOR_TOKEN:-}" | tr -d '\r\n')"
trimmed="$(printf '%s' "$sanitized" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')"
if [ -z "$trimmed" ]; then
Expand Down
Loading