From d26d49d9351825c7055c9f3f258b18462b4340f3 Mon Sep 17 00:00:00 2001 From: Bill Schnurr Date: Tue, 9 Jun 2026 17:57:55 -0700 Subject: [PATCH 1/2] Add CodeQL analysis workflow and update compliance pipeline schedule comment --- .github/workflows/codeql.yml | 53 ++++++++++++++++++++++++++++++++++ azure-pipelines-compliance.yml | 3 +- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000000..063dad5501 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,53 @@ +name: CodeQL + +on: + push: + branches: + - main + - release/* + pull_request: + branches: + - main + - release/* + schedule: + - cron: "0 8 * * 0" + +permissions: + actions: read + contents: read + security-events: write + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ${{ matrix.os }} + timeout-minutes: 360 + + strategy: + fail-fast: false + matrix: + include: + - language: csharp + build-mode: none + os: windows-latest + - language: javascript-typescript + build-mode: none + os: ubuntu-latest + - language: python + build-mode: none + os: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{ matrix.language }}" diff --git a/azure-pipelines-compliance.yml b/azure-pipelines-compliance.yml index 4ce2576cf0..c8adc44f31 100644 --- a/azure-pipelines-compliance.yml +++ b/azure-pipelines-compliance.yml @@ -18,7 +18,7 @@ name: $(date:yy)$(DayOfYear)$(rev:.r) trigger: none pr: none -# Trigger builds on a nightly schedule, as long as there are changes +# Trigger builds on a nightly schedule so compliance scans stay current. # Ignore the azure-pipelines.yml, since that's a different pipeline # All times are in UTC, so 8AM = Midnight PST schedules: @@ -27,6 +27,7 @@ schedules: branches: include: - main + always: true jobs: From ffb45d7077f24476e3d8fb97e66a2154c74d7337 Mon Sep 17 00:00:00 2001 From: Bill Schnurr Date: Tue, 9 Jun 2026 18:21:21 -0700 Subject: [PATCH 2/2] Remove unused pull_request and schedule triggers from CodeQL workflow --- .github/workflows/codeql.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 063dad5501..90e93c1cf2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -5,12 +5,6 @@ on: branches: - main - release/* - pull_request: - branches: - - main - - release/* - schedule: - - cron: "0 8 * * 0" permissions: actions: read