6161 id : check_changes
6262 run : |
6363 echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT
64- echo "need_owasp=${{ fromJSON(steps.changes.outputs.need_owasp) }}" >> $GITHUB_OUTPUT
6564
6665 - name : Cache local Maven repository
6766 if : steps.check_changes.outputs.docs_only != 'true'
9695 run : mvn -B -nsu -am -pl bookkeeper-common,bookkeeper-server,:bookkeeper-stats-api,:bookkeeper-stats-providers,:codahale-metrics-provider,:prometheus-metrics-provider javadoc:aggregate -DskipTests -Pdelombok -Dchesktyle.skip -Dspotbugs.skip
9796 outputs :
9897 docs_only : ${{ steps.check_changes.outputs.docs_only }}
99- need_owasp : ${{ steps.check_changes.outputs.need_owasp }}
10098
10199 unit-tests :
102100 name : ${{ matrix.step_name }}
@@ -511,49 +509,6 @@ jobs:
511509 - name : Check typos
512510 uses : crate-ci/typos@v1.22.4
513511
514- owasp-dependency-check :
515- name : OWASP Dependency Check
516- runs-on : ubuntu-latest
517- timeout-minutes : 60
518- needs : [ 'build-and-license-check' ]
519- if : ${{ needs.build-and-license-check.outputs.need_owasp == 'true' }}
520- steps :
521- - name : Checkout
522- uses : actions/checkout@v4
523-
524- - name : Tune Runner VM
525- uses : ./.github/actions/tune-runner-vm
526-
527- - name : Cache local Maven repository
528- id : cache
529- uses : actions/cache@v4
530- with :
531- path : |
532- ~/.m2/repository/*/*/*
533- !~/.m2/repository/org/apache/bookkeeper
534- !~/.m2/repository/org/apache/distributedlog
535- key : ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}
536-
537- - name : Set up JDK 11
538- uses : actions/setup-java@v4
539- with :
540- distribution : ' temurin'
541- java-version : 21
542-
543- - name : run "clean install verify" to trigger dependency check
544- # excluding dlfs because it includes hadoop lib with
545- # CVEs that we cannot patch up anyway
546- run : mvn -q -B -ntp clean install verify -Powasp-dependency-check -DskipTests -pl '!stream/distributedlog/io/dlfs,!tests'
547-
548- - name : Upload report
549- uses : actions/upload-artifact@v4
550- if : ${{ cancelled() || failure() }}
551- continue-on-error : true
552- with :
553- name : dependency report
554- path : target/dependency-check-report.html
555- retention-days : 7
556-
557512 bookkeeper-ci-checks-completed :
558513 name : " BookKeeper CI checks completed"
559514 if : ${{ always() && ((github.event_name != 'schedule') || (github.repository == 'apache/bookkeeper')) }}
@@ -565,7 +520,6 @@ jobs:
565520 ' integration-tests' ,
566521 ' jdk-compatibility-checks' ,
567522 ' macos-build' ,
568- ' owasp-dependency-check' ,
569523 ' typo-check' ,
570524 ' unit-tests' ,
571525 ' windows-build'
0 commit comments