Skip to content

Commit 55e9b79

Browse files
committed
chore(ci): route CodeQL through shared netresearch/.github reusable
Replace the inline github/codeql-action init/autobuild/analyze steps with the org's codeql.yml reusable (languages: javascript-typescript), so the pinned codeql-action version is maintained centrally instead of bumped per-repo by Renovate. Signed-off-by: Sebastian Mendel <sebastian.mendel@netresearch.de>
1 parent 7f1c974 commit 55e9b79

1 file changed

Lines changed: 17 additions & 31 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,24 @@
11
name: 'CodeQL'
22

33
on:
4-
push:
5-
branches: ['main']
6-
pull_request:
7-
branches: ['main']
8-
schedule:
9-
- cron: '18 21 * * 2'
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
schedule:
9+
- cron: '18 21 * * 2'
1010

1111
permissions: {}
1212

1313
jobs:
14-
analyze:
15-
name: Analyze
16-
runs-on: ubuntu-latest
17-
timeout-minutes: 360
18-
permissions:
19-
actions: read
20-
contents: read
21-
security-events: write
22-
23-
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
26-
27-
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
29-
with:
30-
languages: javascript
31-
32-
- name: Autobuild
33-
uses: github/codeql-action/autobuild@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
34-
35-
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
37-
with:
38-
category: '/language:javascript'
14+
# CodeQL runs through the org's shared reusable in netresearch/.github,
15+
# so the pinned github/codeql-action versions are maintained centrally
16+
# instead of bumped per-repo by Renovate.
17+
analyze:
18+
uses: netresearch/.github/.github/workflows/codeql.yml@main
19+
permissions:
20+
actions: read
21+
contents: read
22+
security-events: write
23+
with:
24+
languages: javascript-typescript

0 commit comments

Comments
 (0)