From bbf096e292166346092071d8669b87da57a55421 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Fri, 24 Jul 2026 22:57:31 -0700 Subject: [PATCH] Use shared-config's reusable CodeQL workflow Replaces the full copy-pasted codeql.yml with a thin caller of rubyatscale/shared-config/.github/workflows/codeql.yml@main (rubyatscale/shared-config#29), passing this repo's language list (["actions","ruby","javascript"]) as input instead of a hardcoded matrix. Functionally identical - same checkout/codeql-action SHAs, same build-mode: none, same permissions - but future fixes (like the stale version-comment cleanup in shared-config#28) now land once in shared-config instead of needing to be repeated by hand across every repo. --- .github/workflows/codeql.yml | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bbe15b4..86e418f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -12,37 +12,10 @@ on: jobs: analyze: - name: Analyze (${{ matrix.language }}) - runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write - - strategy: - fail-fast: false - matrix: - include: - - language: actions - build-mode: none - - language: ruby - build-mode: none - - language: javascript - build-mode: none - - steps: - - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - - name: Initialize CodeQL - uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3 - with: - languages: ${{ matrix.language }} - build-mode: ${{ matrix.build-mode }} - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3 - with: - category: "/language:${{ matrix.language }}" + uses: rubyatscale/shared-config/.github/workflows/codeql.yml@main # zizmor: ignore[unpinned-uses] internal reusable workflow tracked at @main by convention so shared-config updates propagate automatically + with: + languages: '["actions","ruby","javascript"]'