Skip to content

Commit ccb427f

Browse files
committed
Update codeql.yml
1 parent 6988574 commit ccb427f

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

.github/workflows/codeql.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
matrix:
4545
include:
4646
- language: javascript-typescript
47-
build-mode: manual
47+
build-mode: none
4848
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
4949
# Use `c-cpp` to analyze code written in C, C++ or both
5050
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -57,6 +57,17 @@ jobs:
5757
- name: Checkout repository
5858
uses: actions/checkout@v4
5959

60+
- name: Setup Node.js
61+
uses: actions/setup-node@v4
62+
with:
63+
node-version: '18'
64+
65+
- name: Install dependencies (Yarn)
66+
run: yarn install --frozen-lockfile
67+
68+
- name: Build monorepo
69+
run: yarn nx run-many --target=build --all
70+
6071
# Initializes the CodeQL tools for scanning.
6172
- name: Initialize CodeQL
6273
uses: github/codeql-action/init@v3
@@ -77,18 +88,14 @@ jobs:
7788
# ℹ️ Command-line programs to run using the OS shell.
7889
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
7990
- if: matrix.build-mode == 'manual'
80-
name: Setup Node.js
81-
uses: actions/setup-node@v4
82-
with:
83-
node-version: '18'
84-
85-
- if: matrix.build-mode == 'manual'
86-
name: Install dependencies (Yarn)
87-
run: yarn install --frozen-lockfile
88-
89-
- if: matrix.build-mode == 'manual'
90-
name: Build monorepo
91-
run: yarn nx run-many --target=build --all
91+
shell: bash
92+
run: |
93+
echo 'If you are using a "manual" build mode for one or more of the' \
94+
'languages you are analyzing, replace this with the commands to build' \
95+
'your code, for example:'
96+
echo ' make bootstrap'
97+
echo ' make release'
98+
exit 1
9299
93100
- name: Perform CodeQL Analysis
94101
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)