This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new ad0ae5d  Another attempt to exclude test code from codeql
ad0ae5d is described below

commit ad0ae5dac3623c9a69b7d7d6985ea0be7fd30966
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Tue Oct 6 07:14:50 2020 +0100

    Another attempt to exclude test code from codeql
---
 .github/codeql/codeql-cxf-config.yml  | 6 ++++++
 .github/workflows/codeql-analysis.yml | 4 +---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/.github/codeql/codeql-cxf-config.yml 
b/.github/codeql/codeql-cxf-config.yml
new file mode 100644
index 0000000..ece2616
--- /dev/null
+++ b/.github/codeql/codeql-cxf-config.yml
@@ -0,0 +1,6 @@
+
+name: "CXF CodeQL config"
+
+paths:
+  # Exclude test code
+  - src/main
diff --git a/.github/workflows/codeql-analysis.yml 
b/.github/workflows/codeql-analysis.yml
index 3797ac0..bda80a3 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -46,13 +46,11 @@ jobs:
       uses: github/codeql-action/init@v1
       with:
         languages: ${{ matrix.language }}
+        config-file: ./.github/codeql/codeql-cxf-config.yml
         # If you wish to specify custom queries, you can do so here or in a 
config file.
         # By default, queries listed here will override any specified in a 
config file. 
         # Prefix the list here with "+" to use these queries and those in the 
config file.
         # queries: ./path/to/local/query, your-org/your-repo/queries@main
-      paths:
-        # Exclude test paths from the analysis
-        - src/main
 
     # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
     # If this step fails, then you should remove it and run the build manually 
(see below)

Reply via email to