From 709f2206c8aae68c6af4889a96953f08aa2f9429 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 16:22:39 +0000 Subject: [PATCH 1/2] Initial plan From e76e858c6f144acf637abcbd1e556d5aea8ebf04 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 16:28:47 +0000 Subject: [PATCH 2/2] Add custom CodeQL workflow to replace Default Setup --- .github/workflows/codeql.yml | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000000..47f39b936f5 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +# CodeQL Advanced Setup +# Replaces GitHub Default Setup to avoid the "feature enablement" REST API check that +# intermittently fails with "Requires authentication" in the default/managed workflow. +# See: https://github.com/Automattic/jetpack/actions/runs/27288843019/job/80603514749 +name: "CodeQL" + +on: + push: + branches: [ "trunk" ] + pull_request: + branches: [ "trunk" ] + schedule: + - cron: '30 7 * * 1' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript-typescript' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: none + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}"