-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.79 KB
/
Copy pathcodeql.yml
File metadata and controls
57 lines (51 loc) · 1.79 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
56
57
# CodeQL semantic code scanning — Python (cli/sdk/scripts), JavaScript/TypeScript
# (landing-page/sdk), and the
# workflow files themselves (the `actions` language catches untrusted-input
# and injection patterns in CI config). Rust (integrations/cpex-ocsf-audit)
# is deliberately not enrolled: CodeQL's Rust support is still maturing, and
# the crate has its own test gate — revisit when Rust analysis goes GA.
#
# Findings land in the repo Security tab (free for public repos). Advanced
# setup (this file) rather than default setup so the config is versioned,
# SHA-pinned, and Renovate-managed like every other workflow here.
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '25 9 * * 1'
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
security-events: write # upload findings to code scanning
packages: read # CodeQL query packs
actions: read
strategy:
fail-fast: false
matrix:
include:
- language: python
build-mode: none
- language: javascript-typescript
build-mode: none
- language: actions
build-mode: none
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Initialize CodeQL
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Analyze
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
category: "/language:${{ matrix.language }}"