Skip to content

Commit

Permalink
build: fix owasp check is broken (#4371)
Browse files Browse the repository at this point in the history
Signed-off-by: ZhangJian He <[email protected]>
  • Loading branch information
shoothzj authored May 20, 2024
1 parent f8eb7a0 commit b20c48a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/changes-filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ docs:
- '**/*.md'
- '.github/changes-filter.yaml'
- '.github/ISSUE_TEMPLATE/**'
- 'src/owasp-dependency-check-suppressions.xml'
need_owasp:
- 'pom.xml'
- '**/pom.xml'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/bk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT
echo "need_owasp=${{ fromJSON(steps.changes.outputs.need_owasp) }}" >> $GITHUB_OUTPUT
- name: Cache local Maven repository
if: steps.check_changes.outputs.docs_only != 'true'
Expand Down Expand Up @@ -92,6 +93,9 @@ jobs:
- name: Generate Javadoc
if: steps.check_changes.outputs.docs_only != 'true'
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
outputs:
docs_only: ${{ steps.check_changes.outputs.docs_only }}
need_owasp: ${{ steps.check_changes.outputs.need_owasp }}

unit-tests:
name: ${{ matrix.step_name }}
Expand Down Expand Up @@ -505,7 +509,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
java-version: 21

- name: run "clean install verify" to trigger dependency check
# excluding dlfs because it includes hadoop lib with
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Cache local Maven repository
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2/repository/*/*/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/java21-daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
java-version: 21
- name: Build with Maven
run: mvn -B clean install
- name: Aggregates all test reports to ./test-reports and ./surefire-reports directories If failure
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
java-version: 21
- name: Build with Maven
run: mvn -B clean install
- name: Aggregates all test reports to ./test-reports and ./surefire-reports directories If failure
Expand Down

0 comments on commit b20c48a

Please sign in to comment.