Skip to content

Commit b37fb30

Browse files
chore: main to demo
2 parents 8eef235 + 28688c5 commit b37fb30

52 files changed

Lines changed: 9775 additions & 4725 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ updates:
2929
patterns:
3030
- "*"
3131

32+
# Python index scripts dependencies - grouped
33+
- package-ecosystem: "pip"
34+
directory: "/infra/scripts/index_scripts"
35+
schedule:
36+
interval: "monthly"
37+
target-branch: "dependabotchanges"
38+
commit-message:
39+
prefix: "build"
40+
open-pull-requests-limit: 10
41+
groups:
42+
index-scripts-deps:
43+
patterns:
44+
- "*"
45+
3246
# Frontend npm dependencies - grouped
3347
- package-ecosystem: "npm"
3448
directory: "/src/App"

.github/workflows/Scheduled-Dependabot-PRs-Auto-Merge.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,29 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- name: Checkout repository
39-
uses: actions/checkout@v5
39+
uses: actions/checkout@v6
4040

4141
- name: Install GitHub CLI
4242
run: |
4343
sudo apt update
4444
sudo apt install -y gh
45+
46+
- name: Retarget Dependabot PRs from main to dependabotchanges
47+
env:
48+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
run: |
50+
echo "🔄 Checking for Dependabot PRs targeting 'main' that need retargeting..."
51+
pr_batch=$(gh pr list --state open --json number,title,author,baseRefName,headRefName \
52+
--jq '.[] | "\(.number)|\(.title)|\(.author.login)|\(.baseRefName)|\(.headRefName)"')
53+
while IFS='|' read -r number title author base head; do
54+
author=$(echo "$author" | xargs)
55+
base=$(echo "$base" | xargs)
56+
if [[ "$author" == "app/dependabot" && "$base" == "main" ]]; then
57+
echo "🔀 Retargeting PR #$number from 'main' to 'dependabotchanges'..."
58+
gh pr edit "$number" --base dependabotchanges || echo "⚠️ Failed to retarget PR #$number"
59+
fi
60+
done <<< "$pr_batch"
61+
4562
- name: Fetch & Filter Dependabot PRs
4663
env:
4764
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/azure-dev-validation.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44

55
permissions:
66
contents: read
7+
actions: read
78
id-token: write
89
pull-requests: write
910

@@ -15,11 +16,11 @@ jobs:
1516
steps:
1617
# Step 1: Checkout the code from your repository
1718
- name: Checkout code
18-
uses: actions/checkout@v5
19+
uses: actions/checkout@v6
1920

2021
# Step 2: Validate the Azure template using microsoft/template-validation-action
2122
- name: Validate Azure Template
22-
uses: microsoft/template-validation-action@v0.4.3
23+
uses: microsoft/template-validation-action@v0.4.4
2324
id: validation
2425
env:
2526
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}

.github/workflows/bicep_deploy.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Code
13-
uses: actions/checkout@v5
13+
uses: actions/checkout@v6
1414

1515
- name: Run Quota Check
1616
id: quota-check
17+
env:
18+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
19+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
20+
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
21+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
22+
GPT_MIN_CAPACITY: "30"
23+
AZURE_REGIONS: ${{ vars.AZURE_REGIONS }}
1724
run: |
18-
export AZURE_CLIENT_ID=${{ secrets.AZURE_CLIENT_ID }}
19-
export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }}
20-
export AZURE_CLIENT_SECRET=${{ secrets.AZURE_CLIENT_SECRET }}
21-
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
22-
export GPT_MIN_CAPACITY="30"
23-
export AZURE_REGIONS="${{ vars.AZURE_REGIONS }}"
24-
2525
chmod +x infra/scripts/checkquota_ckmv2.sh
2626
if ! infra/scripts/checkquota_ckmv2.sh; then
2727
# If quota check fails due to insufficient quota, set the flag
@@ -55,11 +55,6 @@ jobs:
5555
echo "Selected Region: $VALID_REGION"
5656
echo "AZURE_LOCATION=$VALID_REGION" >> $GITHUB_ENV
5757
58-
- name: Setup Azure CLI
59-
run: |
60-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
61-
az --version # Verify installation
62-
6358
- name: Login to Azure
6459
run: |
6560
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/broken-links-checker.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
permissions:
1010
contents: read
11+
actions: read
1112

1213
jobs:
1314
markdown-link-check:
@@ -16,15 +17,15 @@ jobs:
1617

1718
steps:
1819
- name: Checkout Repo
19-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
2021
with:
2122
fetch-depth: 0
2223

2324
# For PR : Get only changed markdown files
2425
- name: Get changed markdown files (PR only)
2526
id: changed-markdown-files
2627
if: github.event_name == 'pull_request'
27-
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v46
28+
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v46
2829
with:
2930
files: |
3031
**/*.md
@@ -34,7 +35,7 @@ jobs:
3435
- name: Check Broken Links in Changed Markdown Files
3536
id: lychee-check-pr
3637
if: github.event_name == 'pull_request' && steps.changed-markdown-files.outputs.any_changed == 'true'
37-
uses: lycheeverse/lychee-action@v2.6.1
38+
uses: lycheeverse/lychee-action@v2.7.0
3839
with:
3940
args: >
4041
--verbose --no-progress --exclude ^https?://
@@ -47,7 +48,7 @@ jobs:
4748
- name: Check Broken Links in All Markdown Files in Entire Repo (Manual Trigger)
4849
id: lychee-check-manual
4950
if: github.event_name == 'workflow_dispatch'
50-
uses: lycheeverse/lychee-action@v2.6.1
51+
uses: lycheeverse/lychee-action@v2.7.0
5152
with:
5253
args: >
5354
--verbose --no-progress --exclude ^https?://

.github/workflows/codeql.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ name: "CodeQL"
1414
on:
1515
push:
1616
branches: [ "main" ]
17+
paths:
18+
- '**/*.py'
19+
- '.github/workflows/codeql.yml'
1720
pull_request:
1821
# The branches below must be a subset of the branches above
1922
branches: [ "main" ]
23+
paths:
24+
- '**/*.py'
25+
- '.github/workflows/codeql.yml'
2026
schedule:
2127
- cron: '17 11 * * 0'
2228

@@ -47,10 +53,10 @@ jobs:
4753

4854
steps:
4955
- name: Checkout repository
50-
uses: actions/checkout@v5
56+
uses: actions/checkout@v6
5157

5258
# Installing DotNet version
53-
- uses: actions/checkout@v5
59+
- uses: actions/checkout@v6
5460
- name: Setup dotnet ${{ matrix.dotnet-version }}
5561
uses: actions/setup-dotnet@v5
5662
with:
@@ -61,7 +67,7 @@ jobs:
6167

6268
# Initializes the CodeQL tools for scanning.
6369
- name: Initialize CodeQL
64-
uses: github/codeql-action/init@v3
70+
uses: github/codeql-action/init@v4
6571
with:
6672
languages: ${{ matrix.language }}
6773
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -88,6 +94,6 @@ jobs:
8894
# ./location_of_script_within_repo/buildscript.sh
8995

9096
- name: Perform CodeQL Analysis
91-
uses: github/codeql-action/analyze@v3
97+
uses: github/codeql-action/analyze@v4
9298
with:
9399
category: "/language:${{matrix.language}}"

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1919
with:
2020
ref: ${{ github.sha }}
2121

.github/workflows/deploy-KMGeneric.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
schedule:
1212
- cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
1313
workflow_dispatch: # Allow manual triggering
14+
15+
permissions:
16+
contents: read
17+
actions: read
18+
1419
env:
1520
GPT_MIN_CAPACITY: 150
1621
TEXT_EMBEDDING_MIN_CAPACITY: 80
@@ -25,24 +30,22 @@ jobs:
2530
API_APP_URL: ${{ steps.get_output.outputs.API_APP_URL }}
2631
steps:
2732
- name: Checkout Code
28-
uses: actions/checkout@v5
29-
- name: Setup Azure CLI
30-
run: |
31-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
32-
az --version
33+
uses: actions/checkout@v6
34+
3335
- name: Login to Azure
3436
run: |
3537
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
3638
- name: Run Quota Check
3739
id: quota-check
40+
env:
41+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
42+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
43+
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
44+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
45+
GPT_MIN_CAPACITY: ${{ env.GPT_MIN_CAPACITY }}
46+
TEXT_EMBEDDING_MIN_CAPACITY: ${{ env.TEXT_EMBEDDING_MIN_CAPACITY }}
47+
AZURE_REGIONS: ${{ vars.AZURE_REGIONS_KM }}
3848
run: |
39-
export AZURE_CLIENT_ID=${{ secrets.AZURE_CLIENT_ID }}
40-
export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }}
41-
export AZURE_CLIENT_SECRET=${{ secrets.AZURE_CLIENT_SECRET }}
42-
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
43-
export GPT_MIN_CAPACITY=${{ env.GPT_MIN_CAPACITY }}
44-
export TEXT_EMBEDDING_MIN_CAPACITY=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }}
45-
export AZURE_REGIONS="${{ vars.AZURE_REGIONS_KM }}"
4649
chmod +x infra/scripts/checkquota_km.sh
4750
if ! infra/scripts/checkquota_km.sh; then
4851
# If quota check fails due to insufficient quota, set the flag
@@ -191,10 +194,6 @@ jobs:
191194
env:
192195
RESOURCE_GROUP_NAME: ${{ needs.deploy.outputs.RESOURCE_GROUP_NAME }}
193196
steps:
194-
- name: Setup Azure CLI
195-
run: |
196-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
197-
az --version
198197
- name: Login to Azure
199198
run: |
200199
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}

0 commit comments

Comments
 (0)