Repository navigation
48 lines (44 loc) · 1.65 KB
/
Copy pathcodeql.yml
File metadata and controls
48 lines (44 loc) · 1.65 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
name: CodeQL
on:
push:
branches: [main]
pull_request:
# weekly too, so a query added to CodeQL meets what is already on main
schedule:
- cron: '23 5 * * 1'
permissions:
contents: read
# a newer push to a pull request replaces its run under way; every push to main is analysed
concurrency:
group: codeql-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-26.04
timeout-minutes: 20
permissions:
contents: read
# to upload what the analysis found
security-events: write
strategy:
fail-fast: false
matrix:
# the workflows, and the source with its tests, scripts and examples
language: [actions, javascript-typescript]
steps:
# the name for the branch checkout starts its repository with (unset, git prints a hint about its default)
- run: git config --global init.defaultBranch main
# each action is pinned to the commit of its release, which Dependabot keeps current
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
languages: ${{ matrix.language }}
# nothing is compiled: CodeQL reads the source as it is
build-mode: none
queries: security-extended
- uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
category: /language:${{ matrix.language }}