From 09d03f7855a7c11844094cf0fa0baffc9ab6dd15 Mon Sep 17 00:00:00 2001 From: Amp Date: Tue, 3 Nov 2026 23:31:48 +0000 Subject: [PATCH 1/2] Move CodeQL to advanced setup and skip tests, docs and demos Co-authored-by: Taylor Otwell --- .github/codeql/codeql-config.yml | 7 ++++++ .github/workflows/codeql.yml | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/codeql/codeql-config.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 000000000..bd2c515aa --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,7 @@ +name: CodeQL config + +# Test fixtures, documentation and demo apps hold sample credentials and code that never ships. +paths-ignore: + - tests + - docs + - demos diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..207737a8a --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "17 5 * * 1" + +permissions: + contents: read + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: [actions, javascript-typescript, rust] + steps: + - uses: actions/checkout@v7 + + - uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: none + config-file: ./.github/codeql/codeql-config.yml + + - uses: github/codeql-action/analyze@v4 + with: + category: /language:${{ matrix.language }} From edb9ea789383c0e6286d27c101cae085e7ba0658 Mon Sep 17 00:00:00 2001 From: Amp Date: Sat, 14 Nov 2026 17:09:48 +0000 Subject: [PATCH 2/2] Run on 1.x, the default branch Amp-Thread-ID: https://ampcode.com/threads/T-65dee4ad-a744-4f7a-8ec5-ff9680a146a1 Co-authored-by: Taylor Otwell --- .github/workflows/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 207737a8a..762748fc0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,9 @@ name: CodeQL on: push: - branches: [main] + branches: [1.x] pull_request: - branches: [main] + branches: [1.x] schedule: - cron: "17 5 * * 1"