Repository navigation
74 lines (68 loc) · 2.1 KB
/
Copy pathcodeql.yml
File metadata and controls
74 lines (68 loc) · 2.1 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
name: CodeQL
on:
pull_request:
paths-ignore:
- "**/*.md"
- "docs/**"
- "src/mendcode/packages/web/src/content/docs/**"
- "src/mendcode/packages/web/public/**"
- "src/mendcode/packages/web/README.md"
- "CHANGELOG.md"
- "ACKNOWLEDGEMENTS.md"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "SECURITY.md"
- "SUPPORT.md"
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "docs/**"
- "src/mendcode/packages/web/src/content/docs/**"
- "src/mendcode/packages/web/public/**"
- "src/mendcode/packages/web/README.md"
- "CHANGELOG.md"
- "ACKNOWLEDGEMENTS.md"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "SECURITY.md"
- "SUPPORT.md"
schedule:
- cron: "31 13 * * 1"
workflow_dispatch:
permissions:
contents: read
security-events: write
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze JavaScript and TypeScript
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 20
# Reuse main's CodeQL database for pull requests and analyze the diff with
# the existing code as context. CodeQL falls back to a full scan when the
# base database, diff ranges, or runner requirements are unavailable.
env:
CODEQL_ACTION_OVERLAY_ANALYSIS: "true"
CODEQL_ACTION_OVERLAY_ANALYSIS_CODE_SCANNING_JAVASCRIPT: "true"
CODEQL_ACTION_DIFF_INFORMED_QUERIES: "true"
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@411bbbe57033eedfc1a82d68c01345aa96c737d7
with:
languages: javascript-typescript
build-mode: none
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@411bbbe57033eedfc1a82d68c01345aa96c737d7
with:
category: "/language:javascript-typescript"