Skip to content

Commit

Permalink
Merge pull request #10042 from microsoft/dev/bhavyau/classifier
Browse files Browse the repository at this point in the history
Use AzureLogin task for classifier
  • Loading branch information
bhavyaus authored Jul 9, 2024
2 parents a36f3a6 + bed1b9d commit b6cb7f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/classifier-runner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Classifier: Runner"

permissions:
id-token: write
contents: read

on:
schedule:
- cron: 0 * * * *
Expand All @@ -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@v2
with:
Expand All @@ -27,7 +38,6 @@ jobs:
from: 130
until: 5
blobContainerName: vscode-remote-release-models
blobStorageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
Expand All @@ -41,6 +51,5 @@ jobs:
- name: "Run Classifier: Labeler"
uses: ./actions/classifier/apply/apply-labels
with:
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
config-path: classifier
7 changes: 6 additions & 1 deletion .github/workflows/classifier-trainer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Classifier: Trainer"

permissions:
id-token: write
contents: read

on:
schedule:
- cron: 0 0 5 * *
Expand All @@ -9,6 +14,7 @@ on:
jobs:
main:
runs-on: ubuntu-latest
environment: main
steps:
- name: Checkout Actions
uses: actions/checkout@v2
Expand Down Expand Up @@ -41,4 +47,3 @@ jobs:
with:
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
blobContainerName: vscode-remote-release-models
blobStorageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}

0 comments on commit b6cb7f4

Please sign in to comment.