-
Notifications
You must be signed in to change notification settings - Fork 14
60 lines (48 loc) · 1.32 KB
/
codeql.yml
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
56
57
58
59
60
name: "CodeQL"
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
types:
- edited
- opened
- ready_for_review
- synchronize
schedule:
- cron: "21 5 * * 3"
# To trigger a CodeQL analysis manually
workflow_dispatch:
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest-8-cores
timeout-minutes: 360
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: autobuild
- language: javascript-typescript
build-mode: none
paths-ignore:
- "**/dist/**"
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Initialize CodeQL
uses: github/codeql-action/init@9278e421667d5d90a2839487a482448c4ec7df4d # v3.27.2
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config: |
paths-ignore: ${{ toJSON(matrix.paths-ignore) }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9278e421667d5d90a2839487a482448c4ec7df4d # v3.27.2
with:
category: "/language:${{matrix.language}}"