You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/10/07 12:21:18 UTC
[syncope] branch master updated: Fixing CodeQL analysis (#217)
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 16cb7fa Fixing CodeQL analysis (#217)
16cb7fa is described below
commit 16cb7fa1764f6be0e6192066522ddc006826739f
Author: Francesco Chicchiriccò <il...@users.noreply.github.com>
AuthorDate: Wed Oct 7 14:21:09 2020 +0200
Fixing CodeQL analysis (#217)
---
.github/workflows/codeql-analysis.yml | 42 ++++++++++++++++++++++++++---------
pom.xml | 1 -
2 files changed, 31 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 54f501f..9cd4d4c 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -1,16 +1,27 @@
-# For most projects, this workflow file will not need changing; you simply need
-# to commit it to your repository.
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
-# You may wish to alter this file to override the set of languages analyzed,
-# or to provide custom queries or build logic.
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License
name: "CodeQL"
on:
push:
- branches: [master]
+ branches: [master,2_1_X]
pull_request:
# The branches below must be a subset of the branches above
- branches: [master]
+ branches: [master,2_1_X]
schedule:
- cron: '0 13 * * 4'
@@ -41,6 +52,16 @@ jobs:
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
+ - name: Setup Java JDK
+ uses: actions/setup-java@v1.4.3
+ with:
+ java-version: 11
+ - uses: actions/cache@v2.1.1
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
@@ -53,8 +74,8 @@ jobs:
# 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)
- - name: Autobuild
- uses: github/codeql-action/autobuild@v1
+ #- name: Autobuild
+ # uses: github/codeql-action/autobuild@v1
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -63,9 +84,8 @@ jobs:
# and modify them (or add more) to build your code if your project
# uses a compiled language
- #- run: |
- # make bootstrap
- # make release
+ - run: |
+ mvn -T 1C -PskipTests,all
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
diff --git a/pom.xml b/pom.xml
index 1111084..58b8694 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2526,7 +2526,6 @@ under the License.
<exclude>**/*.json</exclude>
<exclude>**/banner.txt</exclude>
<exclude>**/target/**</exclude>
- <exclude>**/codeql-analysis.yml</exclude>
</excludes>
</configuration>
<executions>