We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dee9f0 commit 657e331Copy full SHA for 657e331
1 file changed
.github/workflows/oidc-bootstrap.yml
@@ -66,7 +66,12 @@ jobs:
66
}
67
JSON
68
69
- az ad app federated-credential create --id "${APP_OBJECT_ID}" --parameters /tmp/federated-credential.json 1>/dev/null
+ if ! az ad app federated-credential create --id "${APP_OBJECT_ID}" --parameters /tmp/federated-credential.json 1>/dev/null; then
70
+ echo "::error::Failed to create federated credential for ${TARGET_OWNER}/${TARGET_REPO}."
71
+ echo "::error::The identity behind AZURE_CLIENT_ID needs Entra permission to manage application credentials (for example: Application Administrator or Cloud Application Administrator)."
72
+ echo "::error::Required subject: ${SUBJECT}"
73
+ exit 1
74
+ fi
75
76
echo "Created federated credential ${SAFE_NAME}"
77
echo "Subject: ${SUBJECT}"
0 commit comments