-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Enable Workload Identity (#254)
Significant Change set to convert the solution over from Service Principal Client ID and Secret to fully Workload Identity.
1 parent
44de33e
commit dd2d1f1
Showing
62 changed files
with
1,192 additions
and
827 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ on: | |
required: false | ||
region: | ||
description: "Region (needs to be same as byo vnet location)" | ||
default: "eastus2" | ||
default: "centralus" | ||
type: string | ||
required: false | ||
doStandards: | ||
|
@@ -74,7 +74,7 @@ env: | |
AZCLIVERSION: 2.63.0 # https://github.com/Azure/azure-cli/issues/29828 | ||
ParamFilePath: ".github/parameters.json" | ||
DEPNAME: "dep${{ github.run_number }}" | ||
|
||
jobs: | ||
Standards: | ||
runs-on: ubuntu-latest | ||
|
@@ -150,7 +150,7 @@ jobs: | |
if [ -z "${{ github.event.inputs.region }}" ] | ||
then | ||
echo "Region parameter not available through GitHub event data, setting default" | ||
REGION="eastus2" | ||
REGION="centralus" | ||
else | ||
echo "Region parameter found in GitHub event (${{ github.event.inputs.region }})" | ||
REGION="${{ github.event.inputs.region }}" | ||
|
@@ -270,8 +270,8 @@ jobs: | |
azcliversion: ${{ env.AZCLIVERSION }} | ||
inlineScript: | | ||
DEPNAME='Dep${{ github.run_number }}' | ||
PARAMS='${{ steps.imperitiveparams.outputs.PARAMOVERRIDES }} applicationClientId=${{ env.AZURE_CLIENT_ID }} applicationClientSecret=${{ secrets.AZURE_CLIENT_SECRET }} applicationClientPrincipalOid=${{ env.AZURE_CLIENT_PRINCIPAL_OID }} emailAddress=${{ secrets.EMAIL_ADDRESS }}' | ||
PARAMS='${{ steps.imperitiveparams.outputs.PARAMOVERRIDES }} applicationClientId=${{ env.AZURE_CLIENT_ID }} applicationClientPrincipalOid=${{ env.AZURE_CLIENT_PRINCIPAL_OID }} emailAddress=${{ secrets.EMAIL_ADDRESS }}' | ||
echo $PARAMS | ||
az deployment group validate -f bicep/main.bicep -g $RESOURCE_GROUP -p ${{ env.ParamFilePath }} -p $PARAMS --verbose | ||
|
@@ -330,7 +330,7 @@ jobs: | |
|
||
- name: Install azd | ||
uses: Azure/[email protected] | ||
|
||
- name: Log in with Azure (Federated Credentials) | ||
if: ${{ env.AZURE_CLIENT_ID != '' }} | ||
run: | | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.