Skip to content

Commit fd47087

Browse files
authored
codeql should analyze lib not dist (#620)
1 parent 3d677ac commit fd47087

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/codeql-analysis.yml

+3-16
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
- name: Checkout repository
4242
uses: actions/checkout@v2
4343

44-
# Initializes the CodeQL tools for scanning.
4544
- name: Initialize CodeQL
4645
uses: github/codeql-action/init@v1
4746
with:
@@ -51,21 +50,9 @@ jobs:
5150
# Prefix the list here with "+" to use these queries and those in the config file.
5251
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5352

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55-
# If this step fails, then you should remove it and run the build manually (see below)
56-
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
58-
59-
# ℹ️ Command-line programs to run using the OS shell.
60-
# 📚 https://git.io/JvXDl
61-
62-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63-
# and modify them (or add more) to build your code if your project
64-
# uses a compiled language
65-
66-
#- run: |
67-
# make bootstrap
68-
# make release
53+
- run: npm ci
54+
- run: npm run build
55+
- run: rm -rf dist # We want code scanning to analyze lib instead (individual .js files)
6956

7057
- name: Perform CodeQL Analysis
7158
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)