Skip to content

Commit ff771fb

Browse files
authored
Update CodeQL workflow to set source root
Modified CodeQL workflow to specify source root for analysis.
1 parent fafb4a6 commit ff771fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@ jobs:
5454
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
5555
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5656
steps:
57+
- name: Checkout THIS repository to ROOT
58+
uses: actions/checkout@v4
59+
5760
- name: Checkout repository
5861
uses: actions/checkout@v4
5962
with:
6063
repository: testing-felickz/hello-py # a different git repo is cloned into the root dir of this runner
64+
path: abc/def/ghi
6165

6266
# Add any setup steps before running the `github/codeql-action/init` action.
6367
# This includes steps like installing compilers or runtimes (`actions/setup-node`
@@ -71,12 +75,8 @@ jobs:
7175
with:
7276
languages: ${{ matrix.language }}
7377
build-mode: ${{ matrix.build-mode }}
74-
# If you wish to specify custom queries, you can do so here or in a config file.
75-
# By default, queries listed here will override any specified in a config file.
76-
# Prefix the list here with "+" to use these queries and those in the config file.
77-
78-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
79-
# queries: security-extended,security-and-quality
78+
#scan the code in this folder + report vulnerable code paths relative to this, not the root
79+
source-root: abc/def/ghi
8080

8181

8282
- name: Perform CodeQL Analysis

0 commit comments

Comments
 (0)