Skip to content

Commit 9f7ceef

Browse files
Merge pull request #3229 from cdr/jsjoeio/add-code-scanning
feat(security): add code-scanning with CodeQL
2 parents 579bf7c + 2bf0907 commit 9f7ceef

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

.github/codeql-config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: "code-server CodeQL config"
2+
3+
paths-ignore:
4+
- lib/vscode

.github/dependabot.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ updates:
99
# GitHub always delivers the latest versions for each major
1010
# release tag, so handle updates manually
1111
- dependency-name: "actions/*"
12+
- dependency-name: "github/codeql-action/*"
1213

1314
- package-ecosystem: "npm"
1415
directory: "/"

.github/workflows/codeql-analysis.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Code Scanning"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [main]
9+
schedule:
10+
# Runs every Monday morning PST
11+
- cron: "17 15 * * 1"
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
# Initializes the CodeQL tools for scanning.
23+
- name: Initialize CodeQL
24+
uses: github/codeql-action/init@v1
25+
with:
26+
config-file: ./.github/codeql-config.yml
27+
languages: javascript
28+
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v1
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)