Skip to content

Commit 6cb4d52

Browse files
committed
chore: mask
1 parent 54f3989 commit 6cb4d52

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,23 @@ jobs:
112112
id: get-credentials
113113
run: |
114114
./selfservice get $ENV_ID | jq -r '.credentials' > env.json
115+
115116
API_ENDPOINT="https://api.$(jq -r '.sys_domain' ./env.json)"
116117
echo "::add-mask::$API_ENDPOINT"
117118
echo API_ENDPOINT=$API_ENDPOINT >> "$GITHUB_OUTPUT"
118119
119-
echo API_UAA_ENDPOINT="https://uaa.$(jq -r '.sys_domain' ./env.json)" >> "$GITHUB_OUTPUT"
120-
echo API_PASSWORD="$(hammer -t ./env.json om credentials -- -p cf -t json -c .uaa.admin_credentials | jq -r '.password')" >> "$GITHUB_OUTPUT"
121-
echo API_CLIENT_PASSWORD="$(hammer -t ./env.json om credentials -- -p cf -t json -c .uaa.admin_client_credentials | jq -r '.password')" >> "$GITHUB_OUTPUT"
120+
API_UAA_ENDPOINT="https://uaa.$(jq -r '.sys_domain' ./env.json)"
121+
echo "::add-mask::$API_UAA_ENDPOINT"
122+
echo API_UAA_ENDPOINT=$API_UAA_ENDPOINT >> "$GITHUB_OUTPUT"
123+
124+
API_PASSWORD="$(hammer -t ./env.json om credentials -- -p cf -t json -c .uaa.admin_credentials | jq -r '.password')"
125+
echo "::add-mask::$API_PASSWORD"
126+
echo API_PASSWORD=$API_PASSWORD >> "$GITHUB_OUTPUT"
127+
128+
API_CLIENT_PASSWORD="$(hammer -t ./env.json om credentials -- -p cf -t json -c .uaa.admin_client_credentials | jq -r '.password')"
129+
echo "::add-mask::$API_CLIENT_PASSWORD"
130+
echo API_CLIENT_PASSWORD=$API_CLIENT_PASSWORD >> "$GITHUB_OUTPUT"
131+
122132
echo ENV_ID=$ENV_ID >> "$GITHUB_OUTPUT"
123133
echo AUTH_TOKEN="$AUTH_TOKEN" >> "$GITHUB_OUTPUT"
124134

0 commit comments

Comments
 (0)