Improved: Try to reduce the SARIF file used by CodeQL for Java classes (OFBIZ-12361)

Run only when a Java or Javascript file has been modified.
Java will still fails OFBiz is too big and there are no ways to restrict the
files to check.
This commit is contained in:
Jacques Le Roux
2021-11-03 11:13:20 +01:00
parent e3b125ef4c
commit 849159dd7a
+9 -5
View File
@@ -26,9 +26,18 @@ name: "CodeQL"
on:
push:
branches: [ trunk, release* ]
paths:
- '**.java'
- '**.js'
#paths-ignore:
# - src/node_modules
# - '**/*.test.js'
pull_request:
# The branches below must be a subset of the branches above
branches: [ trunk ]
paths:
- '**.java'
- '**.js'
schedule:
- cron: '27 15 * * 1'
@@ -82,8 +91,3 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
paths:
- '**/*.java'
#paths-ignore:
# - src/node_modules
# - '**/*.test.js'