-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (71 loc) · 2.5 KB
/
Copy pathcodeql.yml
File metadata and controls
78 lines (71 loc) · 2.5 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
68
69
70
71
72
73
74
75
76
77
78
name: CodeQL
on:
push:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
- 'scripts/**'
- 'LICENSE'
- '.gitignore'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
- 'scripts/**'
- 'LICENSE'
- '.gitignore'
schedule:
- cron: "13 7 * * 1"
# Run on demand. The other three triggers all depend on something happening — a push, a PR, or
# Monday — so when the security tab reports this configuration as not enabled there is no way to
# ask it for an answer and find out whether that is stale or real. Carries no paths-ignore on
# purpose: a manual run is an explicit request for a full scan.
workflow_dispatch:
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
# Code scanning needs GitHub Advanced Security on private repos; run only when public.
# Re-enables automatically if the repository is made public.
if: github.event.repository.visibility == 'public'
permissions:
actions: read
contents: read
# The one write this job cannot lose: codeql-action/analyze uploads its SARIF results
# to code scanning with it. Scoped to this job only; everything else stays read-only.
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: csharp
build-mode: none
# The SPA handles tokens, renders API-supplied text, and builds request bodies, so it
# is as much of a target as the API. build-mode: none uses CodeQL's own extractor and
# needs no npm install.
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# No later step pushes with the job token; keep it out of .git/config.
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-extended
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4
with:
category: "/language:${{ matrix.language }}"