-
Notifications
You must be signed in to change notification settings - Fork 140
55 lines (50 loc) · 1.67 KB
/
Copy pathcodeql.yml
File metadata and controls
55 lines (50 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CodeQL
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
workflow_dispatch: # on-demand: Actions tab "Run workflow" or `gh workflow run codeql.yml --ref develop`
schedule:
- cron: '0 6 * * 1' # weekly, Monday 06:00 UTC — catches advisories on idle branches
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
security-events: write # upload results to the code-scanning tab
packages: read # fetch internal CodeQL packs
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
# Go has no build-free mode — CodeQL requires autobuild or manual.
# autobuild resolves src/jetstream/go.mod and builds without the
# gitignored extra_plugins.go (it only adds blank plugin imports).
- language: go
build-mode: autobuild
# JS/TS needs no build — build-free extraction.
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@02c5e83432fe5497fd85b873b6c9f16a8578e1d9 # v3.37.0
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@02c5e83432fe5497fd85b873b6c9f16a8578e1d9 # v3.37.0
with:
category: "/language:${{ matrix.language }}"