Exclude invalid JavaScript files from CodeQL

Closes #42664

Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
This commit is contained in:
Alexander Schwartz
2025-09-18 14:18:06 +02:00
committed by GitHub
parent 1b7709bfa2
commit 15223f298f
4 changed files with 10 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
.github/workflows/operator-ci.yml operator
.github/workflows/js-ci.yml js
.github/workflows/codeql-analysis.yml codeql-java codeql-javascript codeql-typescript codeql-actions
.github/codeql/codeql-config-javascript.yml codeql-javascript
.github/codeql/codeql-config-typescript.yml codeql-typescript
.github/workflows/guides.yml guides
.github/workflows/documentation.yml documentation
.github/workflows/*.yml codeql-actions

View File

@@ -0,0 +1,3 @@
paths-ignore:
# This file is invalid on purpose for testing. Exclude it to prevent an "Unexpected token" error in CodeQL being reported.
- testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers-deployment/src/main/resources/scripts/test-bad-script-mapper3.js

View File

@@ -0,0 +1,3 @@
paths-ignore:
# This file is invalid on purpose for testing. Exclude it to prevent an "Unexpected token" error in CodeQL being reported.
- testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers-deployment/src/main/resources/scripts/test-bad-script-mapper3.js

View File

@@ -92,6 +92,7 @@ jobs:
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"finalize":["--no-run-unnecessary-builds"]}}'
with:
languages: javascript
config-file: ./.github/codeql/codeql-config-javascript.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
@@ -119,6 +120,7 @@ jobs:
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"finalize":["--no-run-unnecessary-builds"]}}'
with:
languages: typescript
config-file: ./.github/codeql/codeql-config-typescript.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3