Skip to content

Commit 8348ca7

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

File tree

1 file changed

+45
-36
lines changed

1 file changed

+45
-36
lines changed

.github/workflows/codeql.yml

Lines changed: 45 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,18 @@ 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+
- "**/*.test.ts"
21+
- packages/reva-admin-react/cypress
22+
- packages/reva-admin-react/public/vendor/tarteaucitronjs
23+
- packages/reva-api/test
24+
- packages/reva-candidate/cypress
25+
- packages/reva-candidate/public/vendor/tarteaucitronjs
26+
- packages/reva-website/cypress
27+
- packages/reva-website/public/vendor/tarteaucitronjs
1928

2029
jobs:
2130
analyze:
@@ -41,8 +50,8 @@ jobs:
4150
fail-fast: false
4251
matrix:
4352
include:
44-
- language: javascript-typescript
45-
build-mode: none
53+
- language: javascript-typescript
54+
build-mode: none
4655
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
4756
# Use `c-cpp` to analyze code written in C, C++ or both
4857
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -52,39 +61,39 @@ jobs:
5261
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
5362
# 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
5463
steps:
55-
- name: Checkout repository
56-
uses: actions/checkout@v4
64+
- name: Checkout repository
65+
uses: actions/checkout@v4
5766

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.
67+
# Initializes the CodeQL tools for scanning.
68+
- name: Initialize CodeQL
69+
uses: github/codeql-action/init@v3
70+
with:
71+
languages: ${{ matrix.language }}
72+
build-mode: ${{ matrix.build-mode }}
73+
# If you wish to specify custom queries, you can do so here or in a config file.
74+
# By default, queries listed here will override any specified in a config file.
75+
# Prefix the list here with "+" to use these queries and those in the config file.
6776

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
77+
# 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
78+
# queries: security-extended,security-and-quality
7079

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

0 commit comments

Comments
 (0)