Repository navigation
67 lines (58 loc) · 2.16 KB
/
Copy pathcodeql.yml
File metadata and controls
67 lines (58 loc) · 2.16 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
58
59
60
61
62
63
64
65
66
67
name: CodeQL
# CodeQL *default* setup never produced an analysis for pull requests from
# forks, so the `code_scanning` rule on `main` was unsatisfiable for external
# contributions and every one of them needed an admin override to merge (#69).
# A workflow in the repository does run for fork pull requests, so this
# advanced setup gives the required check to contributors and maintainers
# alike. Default setup is disabled; re-enabling it would make these uploads
# conflict.
on:
push:
branches: ["main"]
pull_request:
schedule:
# Keep the weekly sweep default setup used to run, so newly published
# queries reach `main` without waiting for the next push.
- cron: "27 4 * * 1"
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
# Superseded pull request runs are disposable; scheduled and `main` runs are
# the ones alerts are attributed to, so let those finish.
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
name: CodeQL (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
# Upload SARIF results to the code scanning API.
security-events: write
contents: read
actions: read
strategy:
fail-fast: false
matrix:
include:
# `none` keeps every analysis source-based, so no system packages, no
# gpui git checkout, and no full build per pull request.
- language: actions
build-mode: none
- language: javascript-typescript
build-mode: none
- language: rust
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# Matches the suite default setup was configured with.
queries: security-extended
- name: Analyze
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
category: "/language:${{ matrix.language }}"