Skip to content

Commit 538e2cc

Browse files
committed
UPdting secret info doc in logs
1 parent 83f8876 commit 538e2cc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Login to Azure subscription
22
name: 'Azure Login'
3-
description: 'Login Azure wraps the az login, allowing Azure actions to log into Azure or to run Az CLI scripts.'
3+
description: 'Login Azure wraps the az login, allowing Azure actions to log into Azure or to run Az CLI scripts. github.com/Azure/Actions'
44
inputs:
55
creds:
66
description: 'Paste output of `az ad sp create-for-rbac` as value of secret variable: AZURE_CREDENTIALS'

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main() {
3333
let tenantId = secrets.getSecret("$.tenantId", false);
3434
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
3535
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
36-
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied");
36+
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows");
3737
}
3838
yield executeAzCliCommand(`login --service-principal -u "${servicePrincipalId}" -p "${servicePrincipalKey}" --tenant "${tenantId}"`);
3939
yield executeAzCliCommand(`account set --subscription "${subscriptionId}"`);

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function main() {
1818
let tenantId = secrets.getSecret("$.tenantId", false);
1919
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
2020
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
21-
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied");
21+
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows");
2222
}
2323

2424
await executeAzCliCommand(`login --service-principal -u "${servicePrincipalId}" -p "${servicePrincipalKey}" --tenant "${tenantId}"`);

0 commit comments

Comments
 (0)