Skip to content

Commit 64778a8

Browse files
committed
adding src as the path to be scanned
1 parent e1d2544 commit 64778a8

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL Advanced"
132

143
on:
154
push:
165
branches: [ "main" ]
176
pull_request:
187
branches: [ "main" ]
8+
paths:
9+
- src
1910

2011
jobs:
2112
analyze:
2213
name: Analyze (${{ matrix.language }})
23-
# Runner size impacts CodeQL analysis time. To learn more, please see:
24-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
25-
# - https://gh.io/supported-runners-and-hardware-resources
26-
# - https://gh.io/using-larger-runners (GitHub.com only)
27-
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
2814
runs-on: 'ubuntu-latest'
2915
permissions:
3016
# required for all workflows
@@ -47,12 +33,6 @@ jobs:
4733
- name: Checkout repository
4834
uses: actions/checkout@v4
4935

50-
# Add any setup steps before running the `github/codeql-action/init` action.
51-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
52-
# or others). This is typically only required for manual builds.
53-
# - name: Setup runtime (example)
54-
# uses: actions/setup-example@v1
55-
5636
# Initializes the CodeQL tools for scanning.
5737
- name: Initialize CodeQL
5838
uses: github/codeql-action/init@v3
@@ -65,7 +45,7 @@ jobs:
6545
# 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
6646
queries: ${{ matrix.language && 'security-extended' }}
6747

68-
# If the analyze step fails for one of the languages you are analyzing with
48+
# If the "analyze" step fails for one of the languages you are analyzing with
6949
# "We were unable to automatically build your code", modify the matrix above
7050
# to set the build mode to "manual" for that language. Then modify this step
7151
# to build your code.

0 commit comments

Comments
 (0)