Skip to content

Commit 7e38d23

Browse files
committed
chore(codeql): added paths-ignore param
1 parent eacf024 commit 7e38d23

File tree

1 file changed

+41
-36
lines changed

1 file changed

+41
-36
lines changed

.github/workflows/codeql.yml

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ name: "CodeQL Advanced"
1313

1414
on:
1515
push:
16-
branches: [ "master" ]
16+
branches: ["master"]
1717
pull_request:
18-
branches: [ "master" ]
18+
branches: ["master"]
19+
paths-ignore:
20+
- packages/reva-admin-react/cypress
21+
- packages/reva-api/test
22+
- packages/reva-candidate/cypress
23+
- packages/reva-website/cypress
1924

2025
jobs:
2126
analyze:
@@ -41,8 +46,8 @@ jobs:
4146
fail-fast: false
4247
matrix:
4348
include:
44-
- language: javascript-typescript
45-
build-mode: none
49+
- language: javascript-typescript
50+
build-mode: none
4651
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
4752
# Use `c-cpp` to analyze code written in C, C++ or both
4853
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -52,39 +57,39 @@ jobs:
5257
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
5358
# 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
5459
steps:
55-
- name: Checkout repository
56-
uses: actions/checkout@v4
60+
- name: Checkout repository
61+
uses: actions/checkout@v4
5762

58-
# Initializes the CodeQL tools for scanning.
59-
- name: Initialize CodeQL
60-
uses: github/codeql-action/init@v3
61-
with:
62-
languages: ${{ matrix.language }}
63-
build-mode: ${{ matrix.build-mode }}
64-
# If you wish to specify custom queries, you can do so here or in a config file.
65-
# By default, queries listed here will override any specified in a config file.
66-
# Prefix the list here with "+" to use these queries and those in the config file.
63+
# Initializes the CodeQL tools for scanning.
64+
- name: Initialize CodeQL
65+
uses: github/codeql-action/init@v3
66+
with:
67+
languages: ${{ matrix.language }}
68+
build-mode: ${{ matrix.build-mode }}
69+
# If you wish to specify custom queries, you can do so here or in a config file.
70+
# By default, queries listed here will override any specified in a config file.
71+
# Prefix the list here with "+" to use these queries and those in the config file.
6772

68-
# 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
69-
# queries: security-extended,security-and-quality
73+
# 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
74+
# queries: security-extended,security-and-quality
7075

71-
# If the analyze step fails for one of the languages you are analyzing with
72-
# "We were unable to automatically build your code", modify the matrix above
73-
# to set the build mode to "manual" for that language. Then modify this step
74-
# to build your code.
75-
# ℹ️ Command-line programs to run using the OS shell.
76-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
77-
- if: matrix.build-mode == 'manual'
78-
shell: bash
79-
run: |
80-
echo 'If you are using a "manual" build mode for one or more of the' \
81-
'languages you are analyzing, replace this with the commands to build' \
82-
'your code, for example:'
83-
echo ' make bootstrap'
84-
echo ' make release'
85-
exit 1
76+
# If the analyze step fails for one of the languages you are analyzing with
77+
# "We were unable to automatically build your code", modify the matrix above
78+
# to set the build mode to "manual" for that language. Then modify this step
79+
# to build your code.
80+
# ℹ️ Command-line programs to run using the OS shell.
81+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
82+
- if: matrix.build-mode == 'manual'
83+
shell: bash
84+
run: |
85+
echo 'If you are using a "manual" build mode for one or more of the' \
86+
'languages you are analyzing, replace this with the commands to build' \
87+
'your code, for example:'
88+
echo ' make bootstrap'
89+
echo ' make release'
90+
exit 1
8691
87-
- name: Perform CodeQL Analysis
88-
uses: github/codeql-action/analyze@v3
89-
with:
90-
category: "/language:${{matrix.language}}"
92+
- name: Perform CodeQL Analysis
93+
uses: github/codeql-action/analyze@v3
94+
with:
95+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)