Skip to content

Commit d89b881

Browse files
committed
[optimize] Update github actions, adds NVD key
1 parent 23d607d commit d89b881

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.github/workflows/ci-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
with:
1212
fetch-depth: 1
1313
- name: Set up JDK 8
14-
uses: actions/setup-java@v3
14+
uses: actions/setup-java@v4
1515
with:
1616
distribution: temurin
1717
java-version: '8'
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
install: true
2323
- name: Cache Maven packages
24-
uses: actions/cache@v3
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/.m2
2727
key: deploy-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/ci-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: actions/setup-java@v3
14+
- uses: actions/setup-java@v4
1515
with:
1616
distribution: temurin
1717
java-version: ${{ env.DEV_JDK }}
@@ -23,12 +23,15 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4
26-
- uses: actions/setup-java@v3
26+
- uses: actions/setup-java@v4
2727
with:
2828
distribution: temurin
2929
java-version: ${{ env.DEV_JDK }}
3030
cache: 'maven'
31-
- run: mvn -V -B dependency-check:check
31+
- name: OWASP dependency check
32+
env:
33+
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
34+
run: mvn -V -B dependency-check:check
3235
timeout-minutes: 60
3336
test:
3437
name: ${{ matrix.os }} Test
@@ -40,7 +43,7 @@ jobs:
4043
steps:
4144
- uses: actions/checkout@v4
4245
- name: Set up JDK
43-
uses: actions/setup-java@v3
46+
uses: actions/setup-java@v4
4447
with:
4548
distribution: temurin
4649
java-version: ${{ env.DEV_JDK }}
@@ -72,7 +75,7 @@ jobs:
7275
run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -V -B jacoco:report coveralls:report
7376
- name: Archive build logs
7477
if: always()
75-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
7679
with:
7780
name: ${{ runner.os }}-build-logs
7881
retention-days: 5

.github/workflows/ci-xqts.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Set up JDK 8
13-
uses: actions/setup-java@v3
13+
uses: actions/setup-java@v4
1414
with:
1515
distribution: temurin
1616
java-version: '8'
1717
- name: Cache Maven packages
18-
uses: actions/cache@v3
18+
uses: actions/cache@v4
1919
with:
2020
path: ~/.m2
2121
key: xqts-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -29,22 +29,22 @@ jobs:
2929
run: find exist-xqts/target -name exist-xqts-runner.sh -exec {} --xqts-version HEAD --output-dir /tmp/xqts-output --exclude-test-case RangeExpr-411d,RangeExpr-409d,RangeExpr-408d,RangeExpr-409c,RangeExpr-408c,GenCompEq-21 \;
3030
- name: Check for HeapDump
3131
id: check_heapdump
32-
uses: andstor/file-existence-action@v2
32+
uses: andstor/file-existence-action@v3
3333
with:
3434
files: "/tmp/*.hprof"
3535
- name: Compress HeapDump
3636
if: steps.check_heapdump.outputs.files_exists == 'true'
3737
run: zstd --rm -9 --progress -T0 /tmp/*.hprof
3838
- name: Attach HeapDump artifact
3939
if: steps.check_heapdump.outputs.files_exists == 'true'
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: exist-xqts-runner-hprof
4343
retention-days: 1
4444
path: /tmp/*.hprof.zst
4545
- name: Archive XQTS Logs
4646
if: always()
47-
uses: actions/upload-artifact@v3
47+
uses: actions/upload-artifact@v4
4848
with:
4949
name: xqts-logs
5050
retention-days: 14

exist-parent/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@
572572
<artifactId>dependency-check-maven</artifactId>
573573
<version>9.0.9</version>
574574
<configuration>
575+
<nvdApiKey>${env.NVD_API_KEY}</nvdApiKey>
575576
<!-- The OSS Index Server (https://ossindex.sonatype.org) can sometimes be flaky -->
576577
<ossIndexWarnOnlyOnRemoteErrors>true</ossIndexWarnOnlyOnRemoteErrors>
577578

0 commit comments

Comments
 (0)