Skip to content

Use Cake 7 OIDC workload identity for DPI report instead of azure/login - #322

Merged
devlead merged 1 commit into
developfrom
feature/cake-oidc
Nov 11, 2026
Merged

devlead merged 1 commit into
developfrom
feature/cake-oidc

Conversation

@devlead

@devlead devlead commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Remove azure/login and let Cake 7 prepare GitHub Actions OIDC workload identity for the DPI NuGet report.

  • Workflow: drop the azure/login step and job-level AZURE_* env; pass AZURE_TENANT_ID / AZURE_CLIENT_ID to Cake only on trusted develop/main builds
  • build/records.cs: add ShouldPrepareAzureWorkloadIdentity()
  • cake.cs: when reporting, the DPI task calls GitHubActions.Commands.AzurePrepareWorkloadIdentity and passes AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_FEDERATED_TOKEN_FILE only to the dpi process, so DefaultAzureCredential uses WorkloadIdentityCredential

PR builds don't report to Azure, so the first real check is the develop build after merge.

@devlead
devlead merged commit 7b80a69 into develop Nov 11, 2026
1 check passed
@devlead
devlead deleted the feature/cake-oidc branch November 11, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant