onobc commented on code in PR #22386:
URL: https://github.com/apache/pulsar/pull/22386#discussion_r1545023065
##########
.github/workflows/ci-trivy-container-scan.yaml:
##########
@@ -42,7 +42,42 @@ jobs:
- 'latest'
env:
IMAGE_REF: '${{ matrix.docker-image }}:${{ matrix.docker-tag }}'
+ JDK_DISTRIBUTION: corretto
+ CI_JDK_MAJOR_VERSION: 21
+
steps:
+ - name: checkout
+ uses: actions/checkout@v4
+
+ - name: Cache Maven dependencies
+ uses: actions/cache@v4
+ timeout-minutes: 5
+ with:
+ path: |
+ ~/.m2/repository/*/*/*
+ !~/.m2/repository/org/apache/pulsar
+ key: ${{ runner.os }}-m2-dependencies-core-modules-${{
hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-m2-dependencies-core-modules-
+
+ - name: Set up JDK
+ uses: actions/setup-java@v4
+ with:
+ distribution: ${{ env.JDK_DISTRIBUTION }}
+ java-version: ${{ env.CI_JDK_MAJOR_VERSION }}
+
+ - name: restore maven build results from Github artifact cache
Review Comment:
**[TinyNit]** Do you mind capitalizing `restore` (consistent w/ other name).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]