Skip to content

Commit a5c8bcc

Browse files
authored
Use shared-config's reusable CodeQL workflow (#33)
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"]) 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.
1 parent 7252dff commit a5c8bcc

1 file changed

Lines changed: 3 additions & 26 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,10 @@ on:
1212

1313
jobs:
1414
analyze:
15-
name: Analyze (${{ matrix.language }})
16-
runs-on: ubuntu-latest
1715
permissions:
1816
actions: read
1917
contents: read
2018
security-events: write
21-
22-
strategy:
23-
fail-fast: false
24-
matrix:
25-
include:
26-
- language: actions
27-
build-mode: none
28-
- language: ruby
29-
build-mode: none
30-
31-
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
34-
35-
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
37-
with:
38-
languages: ${{ matrix.language }}
39-
build-mode: ${{ matrix.build-mode }}
40-
41-
- name: Perform CodeQL Analysis
42-
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
43-
with:
44-
category: "/language:${{ matrix.language }}"
19+
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
20+
with:
21+
languages: '["actions","ruby"]'

0 commit comments

Comments
 (0)