You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2023/01/24 10:48:55 UTC
[pulsar] branch master updated: [fix][ci] Fix "CI - OWASP Dependency Check" for other than master branch (#19317)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 6c014eef199 [fix][ci] Fix "CI - OWASP Dependency Check" for other than master branch (#19317)
6c014eef199 is described below
commit 6c014eef199cae0abf1db1b80ba5cac1ecb54949
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Tue Jan 24 12:48:43 2023 +0200
[fix][ci] Fix "CI - OWASP Dependency Check" for other than master branch (#19317)
---
.github/workflows/ci-owasp-dependency-check.yaml | 44 ++++++++++--------------
1 file changed, 18 insertions(+), 26 deletions(-)
diff --git a/.github/workflows/ci-owasp-dependency-check.yaml b/.github/workflows/ci-owasp-dependency-check.yaml
index c17dbde230d..194d88c582d 100644
--- a/.github/workflows/ci-owasp-dependency-check.yaml
+++ b/.github/workflows/ci-owasp-dependency-check.yaml
@@ -21,43 +21,43 @@ name: CI - OWASP Dependency Check
on:
schedule:
- cron: '15 0 * * *'
+ workflow_dispatch:
env:
MAVEN_OPTS: -Xss1500k -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
jobs:
run-owasp-dependency-check:
- if: ${{ github.repository == 'apache/pulsar' }}
- name: Run OWASP Dependency Check for ${{ matrix.name }}
+ if: ${{ github.repository == 'apache/pulsar' || github.event_name == 'workflow_dispatch' }}
+ name: Check ${{ matrix.branch }}
env:
- JOB_NAME: Run OWASP Dependency Check for ${{ matrix.name }}
+ JOB_NAME: Check ${{ matrix.branch }}
runs-on: ubuntu-20.04
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- - name: master
- checkout_branch: 'master'
- - name: branch-2.11
- checkout_branch: 'branch-2.11'
- - name: branch-2.10
- checkout_branch: 'branch-2.10'
- - name: branch-2.9
- checkout_branch: 'branch-2.9'
- - name: branch-2.8
- checkout_branch: 'branch-2.8'
+ - branch: master
+ - branch: branch-2.11
+ - branch: branch-2.10
+ jdk: 11
+ - branch: branch-2.9
+ jdk: 11
+ - branch: branch-2.8
+ jdk: 11
steps:
- name: checkout
uses: actions/checkout@v3
with:
- ref: ${{ matrix.checkout_branch }}
+ ref: ${{ matrix.branch }}
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm
- name: Configure Gradle Enterprise
+ if: ${{ matrix.branch == 'master' }}
uses: ./.github/actions/gradle-enterprise
with:
token: ${{ secrets.GE_ACCESS_TOKEN }}
@@ -75,22 +75,14 @@ jobs:
${{ runner.os }}-m2-dependencies-core-modules-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-m2-dependencies-core-modules-
- - name: Set up JDK 17
- if: ${{ matrix.name != 'branch-2.8' && matrix.name != 'branch-2.9' && matrix.name != 'branch-2.10' }}
+ - name: Set up JDK ${{ matrix.jdk || '17' }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
- java-version: 17
-
- - name: Set up JDK 11
- if: ${{ matrix.name == 'branch-2.8' || matrix.name == 'branch-2.9' || matrix.name == 'branch-2.10' }}
- uses: actions/setup-java@v3
- with:
- distribution: 'temurin'
- java-version: 11
+ java-version: ${{ matrix.jdk || '17' }}
- name: run install by skip tests
- run: mvn -q -B -ntp clean install -DskipTests
+ run: mvn -B -ntp clean install -DskipTests -Dspotbugs.skip=true -Dlicense.skip=true -Dcheckstyle.skip=true -Drat.skip=true -DskipDocker=true
- name: run OWASP Dependency Check for distribution/server (-DfailBuildOnAnyVulnerability=true)
run: mvn -B -ntp -Pmain,skip-all,skipDocker,owasp-dependency-check initialize verify -pl distribution/server -DfailBuildOnAnyVulnerability=true
@@ -102,7 +94,7 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
- name: owasp-dependency-check-reports-${{ matrix.checkout_branch }}
+ name: owasp-dependency-check-reports-${{ matrix.branch }}
path: |
distribution/server/target/dependency-check-report.html
distribution/offloaders/target/dependency-check-report.html