Skip to content

Commit 3d30cc9

Browse files
committed
fixup docs example
1 parent 039fe0e commit 3d30cc9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/resources/application_flexible_federated_identity_credential.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ resource "azuread_application_registration" "example" {
2424
}
2525
2626
resource "azuread_application_flexible_federated_identity_credential" "example" {
27-
application_id = azuread_application_registration.example.id
28-
display_name = "my-repo-deploy"
29-
description = "Deployments for my-repo"
30-
audiences = ["api://AzureADTokenExchange"]
31-
issuer = "https://token.actions.githubusercontent.com"
27+
application_id = azuread_application_registration.example.id
28+
claims_matching_expression = "claims['sub'] matches 'repo:contoso/contoso-repo:ref:refs/heads/*' and claims['job_workflow_ref'] matches 'contoso/contoso-prod/.github/workflows/*.yml@refs/heads/main'"
29+
display_name = "my-repo-deploy"
30+
description = "Deployments for my-repo"
31+
audiences = ["api://AzureADTokenExchange"]
32+
issuer = "https://token.actions.githubusercontent.com"
3233
}
3334
```
3435

0 commit comments

Comments
 (0)