Use AzureLogin task for latest-release-monitor (#221194)

pull/221258/head
Bhavya U 2024-07-08 17:40:28 -07:00 committed by GitHub
parent ad476c3416
commit b23e791eb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,9 @@
name: Latest Release Monitor
permissions:
id-token: write
contents: read
on:
schedule:
- cron: 0/5 * * * *
@ -8,7 +13,13 @@ on:
jobs:
main:
runs-on: ubuntu-latest
environment: main
steps:
- uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- name: Checkout Actions
uses: actions/checkout@v4
with:
@ -22,6 +33,4 @@ jobs:
- name: Run Latest Release Monitor
uses: ./actions/latest-release-monitor
with:
storageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}