Skip to content

Commit 0df1d18

Browse files
Copilotmarkphip
andcommitted
Add ACTIONS_ID_TOKEN_REQUEST_URL bypass to auth-ado.sh
Co-authored-by: markphip <933108+markphip@users.noreply.github.com>
1 parent 5b5765a commit 0df1d18

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/artifacts-helper/scripts/auth-ado.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
22

3+
# If ACTIONS_ID_TOKEN_REQUEST_URL is set, we're in a GitHub Actions environment
4+
# Skip Azure DevOps authentication and just execute the real command
5+
if [ -n "${ACTIONS_ID_TOKEN_REQUEST_URL}" ]; then
6+
echo "::step::GitHub Actions environment detected, skipping Azure DevOps authentication"
7+
return 0
8+
fi
9+
310
echo "::step::Waiting for AzDO Authentication Helper..."
411

512
# Wait up to 3 minutes for the ado-auth-helper to be installed

0 commit comments

Comments
 (0)