Skip to content

Commit

Permalink
expand oidc env before calling agent
Browse files Browse the repository at this point in the history
  • Loading branch information
holesch committed Aug 10, 2024
1 parent b2794dc commit e2cbf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github-actions-test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sleep 1
not-my-board export http://localhost:2092 "$script_dir/export-description.toml" &

sudo true
sudo TOKEN="$ACTIONS_ID_TOKEN_REQUEST_TOKEN" URL="$ACTIONS_ID_TOKEN_REQUEST_URL" `which not-my-board` agent --token-cmd 'set -x; env >&2; curl -H "Authorization: bearer $TOKEN" "$URL&audience=not-my-board" | jq -r ".value"' http://localhost:2092 &
sudo `which not-my-board` agent --token-cmd "set -x; env >&2; curl -H 'Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN' '$ACTIONS_ID_TOKEN_REQUEST_URL&audience=not-my-board' | jq -r '.value'" http://localhost:2092 &
sleep 1

sudo `which not-my-board` attach "$script_dir/test.toml"
Expand Down

0 comments on commit e2cbf62

Please sign in to comment.