* added examples for oidc aad integration

* ga updates
This commit is contained in:
Johan Dahlbom 2021-12-15 09:30:06 +01:00 коммит произвёл GitHub
Родитель 5221c0417c
Коммит 466dc7313f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 4 добавлений и 41 удалений

15
.github/samples/oidc-azuread/pull.yml поставляемый
Просмотреть файл

@ -166,25 +166,12 @@ jobs:
run: |
Install-Module -Name "AzOps" -Force
- name: "Install CLI-beta (for OIDC federated credentials support)"
run: |
cd ../..
CWD="$(pwd)"
python3 -m venv oidc-venv
. oidc-venv/bin/activate
echo "activated environment"
python3 -m pip install --upgrade pip
echo "started installing cli beta"
pip install -q --extra-index-url https://azcliprod.blob.core.windows.net/beta/simple/ azure-cli
echo "installed cli beta"
echo "$CWD/oidc-venv/bin" >> $GITHUB_PATH
#
# Connect
# Authenticate Azure context
#
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
uses: azure/login@v1.4.0
uses: azure/login@v1
with:
client-id: ${{ env.ARM_CLIENT_ID}}
tenant-id: ${{ env.ARM_TENANT_ID }}

14
.github/samples/oidc-azuread/push.yml поставляемый
Просмотреть файл

@ -59,25 +59,13 @@ jobs:
run: |
Install-Module -Name "AzOps" -Force
- name: "Install CLI-beta (for OIDC federated credentials support)"
run: |
cd ../..
CWD="$(pwd)"
python3 -m venv oidc-venv
. oidc-venv/bin/activate
echo "activated environment"
python3 -m pip install --upgrade pip
echo "started installing cli beta"
pip install -q --extra-index-url https://azcliprod.blob.core.windows.net/beta/simple/ azure-cli
echo "installed cli beta"
echo "$CWD/oidc-venv/bin" >> $GITHUB_PATH
#
# Connect
# Authenticate Azure context
#
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
uses: azure/login@v1.4.0
uses: azure/login@v1
with:
client-id: ${{ env.ARM_CLIENT_ID}}
tenant-id: ${{ env.ARM_TENANT_ID }}

16
.github/samples/oidc-azuread/validate.yml поставляемый
Просмотреть файл

@ -56,26 +56,14 @@ jobs:
shell: pwsh
run: |
Install-Module -Name "AzOps" -Force
- name: "Install CLI-beta (for OIDC federated credentials support)"
run: |
cd ../..
CWD="$(pwd)"
python3 -m venv oidc-venv
. oidc-venv/bin/activate
echo "activated environment"
python3 -m pip install --upgrade pip
echo "started installing cli beta"
pip install -q --extra-index-url https://azcliprod.blob.core.windows.net/beta/simple/ azure-cli
echo "installed cli beta"
echo "$CWD/oidc-venv/bin" >> $GITHUB_PATH
#
# Connect
# Authenticate Azure context
#
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
uses: azure/login@v1.4.0
uses: azure/login@v1
with:
client-id: ${{ env.ARM_CLIENT_ID}}
tenant-id: ${{ env.ARM_TENANT_ID }}