Update classifier workflows to use AzureLogin task (#219895)

This commit is contained in:
Bhavya U
2024-07-03 15:12:40 -07:00
committed by GitHub
parent 3581a121d1
commit edd91bc5e0
4 changed files with 11 additions and 6 deletions

View File

@@ -21,4 +21,3 @@ jobs:
with:
botName: VSCodeTriageBot
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}

View File

@@ -40,9 +40,7 @@ jobs:
excludeLabels: feature-request|testplan-item
configPath: classifier
blobContainerName: vscode-issue-classifier
blobStorageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
- name: Set up Python 3.7
uses: actions/setup-python@v5
with:

View File

@@ -1,4 +1,9 @@
name: "Deep Classifier: Scraper"
permissions:
id-token: write
contents: read
on:
schedule:
- cron: 0 0 15 * * # 15th of the month
@@ -9,7 +14,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:
@@ -25,6 +36,4 @@ jobs:
uses: ./actions/classifier-deep/train/fetch-issues
with:
blobContainerName: vscode-issue-classifier
blobStorageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}

View File

@@ -21,4 +21,3 @@ jobs:
with:
botName: VSCodeTriageBot
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}