mirror of
https://github.com/azure/login.git
synced 2026-06-07 18:17:07 +00:00
Compare commits
2 commits
master
...
yanxu/node
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42076e4f88 | ||
|
|
97cafe05af |
13 changed files with 9675 additions and 66 deletions
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
|
@ -1 +1 @@
|
||||||
@YanaXu
|
@kaverma @kanika1894 @BALAGA-GAYATRI @pulkitaggarwl
|
||||||
|
|
|
||||||
3
.github/workflows/azure-login-canary.yml
vendored
3
.github/workflows/azure-login-canary.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
az --version
|
az --version
|
||||||
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 'Az CLI login with subscription'
|
- name: 'Az CLI login with subscription'
|
||||||
uses: azure/login@v1
|
uses: azure/login@v1
|
||||||
|
|
@ -89,3 +89,4 @@ jobs:
|
||||||
- name: Post to slack
|
- name: Post to slack
|
||||||
shell: bash
|
shell: bash
|
||||||
run: curl -X POST -H 'Content-type:application/json' --data '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"${{steps.slack_report.outputs.report}}"}}]}' https://hooks.slack.com/services/${{SECRETS.SLACK_CHANNEL_SECRET}}
|
run: curl -X POST -H 'Content-type:application/json' --data '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"${{steps.slack_report.outputs.report}}"}}]}' https://hooks.slack.com/services/${{SECRETS.SLACK_CHANNEL_SECRET}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
enable-AzPSSession: true
|
enable-AzPSSession: true
|
||||||
|
|
||||||
- uses: azure/powershell@v3
|
- uses: azure/powershell@v1
|
||||||
with:
|
with:
|
||||||
inlineScript: "(Get-AzContext).Environment.Name"
|
inlineScript: "(Get-AzContext).Environment.Name"
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
|
|
@ -49,7 +49,7 @@ jobs:
|
||||||
enable-AzPSSession: true
|
enable-AzPSSession: true
|
||||||
allow-no-subscriptions: true
|
allow-no-subscriptions: true
|
||||||
|
|
||||||
- uses: azure/powershell@v3
|
- uses: azure/powershell@v1
|
||||||
with:
|
with:
|
||||||
inlineScript: "(Get-AzContext).Environment.Name"
|
inlineScript: "(Get-AzContext).Environment.Name"
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
|
|
@ -87,7 +87,7 @@ jobs:
|
||||||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID }}
|
subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID }}
|
||||||
enable-AzPSSession: true
|
enable-AzPSSession: true
|
||||||
|
|
||||||
- uses: azure/powershell@v3
|
- uses: azure/powershell@v1
|
||||||
with:
|
with:
|
||||||
inlineScript: "(Get-AzContext).Environment.Name"
|
inlineScript: "(Get-AzContext).Environment.Name"
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
|
|
@ -100,7 +100,7 @@ jobs:
|
||||||
enable-AzPSSession: true
|
enable-AzPSSession: true
|
||||||
allow-no-subscriptions: true
|
allow-no-subscriptions: true
|
||||||
|
|
||||||
- uses: azure/powershell@v3
|
- uses: azure/powershell@v1
|
||||||
with:
|
with:
|
||||||
inlineScript: "(Get-AzContext).Environment.Name"
|
inlineScript: "(Get-AzContext).Environment.Name"
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
|
|
@ -126,4 +126,4 @@ jobs:
|
||||||
|
|
||||||
- name: Post to slack
|
- name: Post to slack
|
||||||
shell: bash
|
shell: bash
|
||||||
run: curl -X POST -H 'Content-type:application/json' --data '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"${{steps.slack_report.outputs.report}}"}}]}' https://hooks.slack.com/services/${{SECRETS.SLACK_CHANNEL_SECRET}}
|
run: curl -X POST -H 'Content-type:application/json' --data '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"${{steps.slack_report.outputs.report}}"}}]}' https://hooks.slack.com/services/${{SECRETS.SLACK_CHANNEL_SECRET}}
|
||||||
|
|
|
||||||
16
.github/workflows/azure-login-negative.yml
vendored
16
.github/workflows/azure-login-negative.yml
vendored
|
|
@ -19,10 +19,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Node.js 24.x for GitHub Action
|
- name: Set Node.js 24.x for GitHub Action
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
|
|
||||||
|
|
@ -58,7 +58,7 @@ jobs:
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
id: ps_3
|
id: ps_3
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v1
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -82,10 +82,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Node.js 24.x for GitHub Action
|
- name: Set Node.js 24.x for GitHub Action
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
|
|
||||||
|
|
@ -186,7 +186,7 @@ jobs:
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
id: ps_8
|
id: ps_8
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v1
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -216,7 +216,7 @@ jobs:
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
id: ps_9
|
id: ps_9
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v1
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -332,4 +332,4 @@ jobs:
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
core.setFailed('Last action should fail but not. Please check it.')
|
core.setFailed('Last action should fail but not. Please check it.')
|
||||||
|
|
|
||||||
43
.github/workflows/azure-login-positive.yml
vendored
43
.github/workflows/azure-login-positive.yml
vendored
|
|
@ -18,10 +18,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Node.js 24.x for GitHub Action
|
- name: Set Node.js 24.x for GitHub Action
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ jobs:
|
||||||
az vm list --output none
|
az vm list --output none
|
||||||
|
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -69,7 +69,7 @@ jobs:
|
||||||
az account show --output none
|
az account show --output none
|
||||||
|
|
||||||
- name: Run Azure PowerShell again
|
- name: Run Azure PowerShell again
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -92,7 +92,7 @@ jobs:
|
||||||
az vm list --output none
|
az vm list --output none
|
||||||
|
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -110,10 +110,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Node.js 24.x for GitHub Action
|
- name: Set Node.js 24.x for GitHub Action
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
|
|
||||||
|
|
@ -160,7 +160,7 @@ jobs:
|
||||||
az vm list --output none
|
az vm list --output none
|
||||||
|
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -183,7 +183,7 @@ jobs:
|
||||||
az account show --output none
|
az account show --output none
|
||||||
|
|
||||||
- name: Run Azure PowerShell again
|
- name: Run Azure PowerShell again
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -203,13 +203,13 @@ jobs:
|
||||||
- name: Run Azure Cli
|
- name: Run Azure Cli
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$checkResult = (az account list --output json | ConvertFrom-Json).Count -eq 2
|
$checkResult = (az account list --output json | ConvertFrom-Json).Count -eq 3
|
||||||
if(-not $checkResult){
|
if(-not $checkResult){
|
||||||
throw "Not all checks passed!"
|
throw "Not all checks passed!"
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -230,7 +230,7 @@ jobs:
|
||||||
az account show --output none
|
az account show --output none
|
||||||
|
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -245,10 +245,10 @@ jobs:
|
||||||
environment: Automation test
|
environment: Automation test
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Node.js 24.x for GitHub Action
|
- name: Set Node.js 24.x for GitHub Action
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
|
|
||||||
|
|
@ -265,12 +265,11 @@ jobs:
|
||||||
- name: Install Powershell
|
- name: Install Powershell
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget apt-transport-https software-properties-common
|
apt-get install -y wget
|
||||||
wget -q "https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb"
|
wget https://ftp.debian.org/debian/pool/main/i/icu/libicu72_72.1-3_amd64.deb
|
||||||
dpkg -i packages-microsoft-prod.deb
|
dpkg -i libicu72_72.1-3_amd64.deb
|
||||||
rm packages-microsoft-prod.deb
|
wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell_7.5.0-1.deb_amd64.deb
|
||||||
apt-get update
|
dpkg -i powershell_7.5.0-1.deb_amd64.deb
|
||||||
apt-get install -y powershell
|
|
||||||
|
|
||||||
- name: Check Powershell Version
|
- name: Check Powershell Version
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
@ -309,8 +308,8 @@ jobs:
|
||||||
az group list --output none
|
az group list --output none
|
||||||
|
|
||||||
- name: Run Azure PowerShell again
|
- name: Run Azure PowerShell again
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
$checkResult = Get-AzResourceGroup
|
$checkResult = Get-AzResourceGroup
|
||||||
|
|
|
||||||
4
.github/workflows/azure-login-pr-check.yml
vendored
4
.github/workflows/azure-login-pr-check.yml
vendored
|
|
@ -10,14 +10,14 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout from PR branch
|
- name: Checkout from PR branch
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
|
||||||
# Using 24.x version as an example
|
# Using 24.x version as an example
|
||||||
- name: Set Node.js 24.x for GitHub Action
|
- name: Set Node.js 24.x for GitHub Action
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
|
|
||||||
|
|
|
||||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -18,10 +18,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Node.js 24.x for GitHub Action
|
- name: Set Node.js 24.x for GitHub Action
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|
|
||||||
4
.github/workflows/markdownlint.yml
vendored
4
.github/workflows/markdownlint.yml
vendored
|
|
@ -7,9 +7,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v4
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.x
|
node-version: 24.x
|
||||||
- name: Run Markdownlint
|
- name: Run Markdownlint
|
||||||
|
|
|
||||||
40
README.md
40
README.md
|
|
@ -193,7 +193,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Azure login
|
- name: Azure login
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
|
@ -223,7 +223,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Azure login
|
- name: Azure login
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
|
@ -238,7 +238,7 @@ jobs:
|
||||||
az account show
|
az account show
|
||||||
|
|
||||||
- name: Azure PowerShell script
|
- name: Azure PowerShell script
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -285,7 +285,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: azure/login@v3
|
- uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
|
|
||||||
|
|
@ -312,7 +312,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: azure/login@v3
|
- uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
enable-AzPSSession: true
|
enable-AzPSSession: true
|
||||||
|
|
@ -325,7 +325,7 @@ jobs:
|
||||||
az account show
|
az account show
|
||||||
|
|
||||||
- name: Azure PowerShell script
|
- name: Azure PowerShell script
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -335,7 +335,7 @@ jobs:
|
||||||
If you want to pass subscription ID, tenant ID, client ID, and client secret as individual parameters instead of bundling them in a single JSON object to address the [security concerns](https://docs.github.com/actions/security-guides/encrypted-secrets), below snippet can help with the same.
|
If you want to pass subscription ID, tenant ID, client ID, and client secret as individual parameters instead of bundling them in a single JSON object to address the [security concerns](https://docs.github.com/actions/security-guides/encrypted-secrets), below snippet can help with the same.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: azure/login@v3
|
- uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
|
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
|
||||||
```
|
```
|
||||||
|
|
@ -379,7 +379,7 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Azure login
|
- name: Azure login
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
auth-type: IDENTITY
|
auth-type: IDENTITY
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
|
@ -396,7 +396,7 @@ jobs:
|
||||||
az account show
|
az account show
|
||||||
|
|
||||||
- name: Azure PowerShell script
|
- name: Azure PowerShell script
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -445,7 +445,7 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Azure login
|
- name: Azure login
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
auth-type: IDENTITY
|
auth-type: IDENTITY
|
||||||
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
|
|
@ -463,7 +463,7 @@ jobs:
|
||||||
az account show
|
az account show
|
||||||
|
|
||||||
- name: Azure PowerShell script
|
- name: Azure PowerShell script
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -485,7 +485,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: azure/login@v3
|
- uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
environment: 'AzureUSGovernment'
|
environment: 'AzureUSGovernment'
|
||||||
|
|
@ -507,7 +507,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: azure/login@v3
|
- uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
environment: 'AzureStack'
|
environment: 'AzureStack'
|
||||||
|
|
@ -534,7 +534,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Azure Login
|
- name: Azure Login
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
with:
|
with:
|
||||||
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
|
@ -549,7 +549,7 @@ jobs:
|
||||||
az account show
|
az account show
|
||||||
|
|
||||||
- name: Run Azure PowerShell
|
- name: Run Azure PowerShell
|
||||||
uses: azure/powershell@v3
|
uses: azure/powershell@v2
|
||||||
with:
|
with:
|
||||||
azPSVersion: "latest"
|
azPSVersion: "latest"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
|
|
@ -597,7 +597,7 @@ jobs:
|
||||||
|
|
||||||
# enable cleanup for the 1st Azure Login
|
# enable cleanup for the 1st Azure Login
|
||||||
- name: Azure Login
|
- name: Azure Login
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
env:
|
env:
|
||||||
AZURE_LOGIN_PRE_CLEANUP: true
|
AZURE_LOGIN_PRE_CLEANUP: true
|
||||||
AZURE_LOGIN_POST_CLEANUP: true
|
AZURE_LOGIN_POST_CLEANUP: true
|
||||||
|
|
@ -611,7 +611,7 @@ jobs:
|
||||||
|
|
||||||
# disable cleanup for all other Azure Login
|
# disable cleanup for all other Azure Login
|
||||||
- name: Azure Login 2
|
- name: Azure Login 2
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
env:
|
env:
|
||||||
AZURE_LOGIN_PRE_CLEANUP: false
|
AZURE_LOGIN_PRE_CLEANUP: false
|
||||||
AZURE_LOGIN_POST_CLEANUP: false
|
AZURE_LOGIN_POST_CLEANUP: false
|
||||||
|
|
@ -625,7 +625,7 @@ jobs:
|
||||||
|
|
||||||
# disable cleanup for all other Azure Login
|
# disable cleanup for all other Azure Login
|
||||||
- name: Azure Login 3
|
- name: Azure Login 3
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
env:
|
env:
|
||||||
AZURE_LOGIN_PRE_CLEANUP: false
|
AZURE_LOGIN_PRE_CLEANUP: false
|
||||||
AZURE_LOGIN_POST_CLEANUP: false
|
AZURE_LOGIN_POST_CLEANUP: false
|
||||||
|
|
@ -652,7 +652,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Azure Login
|
- name: Azure Login
|
||||||
uses: azure/login@v3
|
uses: azure/login@v2
|
||||||
env:
|
env:
|
||||||
AZURE_LOGIN_PRE_CLEANUP: ${{ startsWith(runner.name, 'GitHub Actions') }}
|
AZURE_LOGIN_PRE_CLEANUP: ${{ startsWith(runner.name, 'GitHub Actions') }}
|
||||||
AZURE_LOGIN_POST_CLEANUP: ${{ startsWith(runner.name, 'GitHub Actions') }}
|
AZURE_LOGIN_POST_CLEANUP: ${{ startsWith(runner.name, 'GitHub Actions') }}
|
||||||
|
|
@ -705,4 +705,4 @@ provided by the bot. You will only need to do this once across all repos using o
|
||||||
|
|
||||||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
||||||
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
||||||
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
||||||
|
|
|
||||||
4652
lib/cleanup/index.js
Normal file
4652
lib/cleanup/index.js
Normal file
File diff suppressed because it is too large
Load diff
4957
lib/main/index.js
Normal file
4957
lib/main/index.js
Normal file
File diff suppressed because it is too large
Load diff
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "login",
|
"name": "login",
|
||||||
"version": "3.0.0",
|
"version": "2.2.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "login",
|
"name": "login",
|
||||||
"version": "3.0.0",
|
"version": "2.2.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.9.1",
|
"@actions/core": "1.9.1",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue