Repository navigation
53 lines (49 loc) · 1.61 KB
/
Copy pathcodeql.yml
File metadata and controls
53 lines (49 loc) · 1.61 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
name: CodeQL
on:
push:
branches: [main]
# Required checks must report on every PR, including forks and docs-only PRs.
pull_request:
branches: [main]
schedule:
- cron: '23 3 * * 1'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
# These names match the existing main ruleset.
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [actions, c-cpp, rust, javascript-typescript]
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@f3c49fd1ef3281abc41069b3dd22807a60c963f6 # v4
with:
languages: ${{ matrix.language }}
# Match Default setup without running contributor-controlled builds.
build-mode: none
# The codec's hash salts are fixed mixing constants, not secrets, and
# nothing here is cryptographic, so this query only reports them.
config: |
query-filters:
- exclude:
id: rust/hard-coded-cryptographic-value
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f3c49fd1ef3281abc41069b3dd22807a60c963f6 # v4
with:
category: /language:${{ matrix.language }}