Skip to content

Commit 73b1d95

Browse files
authored
Merge pull request #141 from vasac/update-workflows
Update workflows
2 parents 1d0870f + 14f5a07 commit 73b1d95

4 files changed

Lines changed: 35 additions & 23 deletions

File tree

.github/workflows/build-trivy.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ on:
3737
# Every day at midnight
3838
- cron: '0 0 * * *'
3939

40+
permissions:
41+
contents: read
42+
4043
jobs:
4144
build:
4245
runs-on: ubuntu-latest
4346

4447
# Checkout the source, we need a depth of zero to fetch all the history otherwise
4548
# the copyright check cannot work out the date of the files from Git.
4649
steps:
47-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4851
with:
4952
fetch-depth: 0
5053

.github/workflows/test-against-released.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ on:
3434
branches:
3535
- '*'
3636

37+
permissions:
38+
contents: read
39+
3740
jobs:
3841
build:
3942
runs-on: ubuntu-latest
@@ -50,17 +53,17 @@ jobs:
5053

5154
steps:
5255
- name: Checkout
53-
uses: actions/checkout@v4
56+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5457

5558
- name: Cache Maven packages
56-
uses: actions/cache@v4
59+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5760
with:
5861
path: ~/.m2
5962
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
6063
restore-keys: ${{ runner.os }}-m2
6164

6265
- name: Set up JDK 11 for Build
63-
uses: actions/setup-java@v4
66+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6467
with:
6568
java-version: '17'
6669
distribution: 'zulu'
@@ -80,20 +83,20 @@ jobs:
8083
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-ce/pom.xml --batch-mode -e -Dcoherence.version=${{ matrix.version }} clean install
8184
8285
- name: Build Artifacts test logs
83-
uses: actions/upload-artifact@v4
86+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8487
if: failure()
8588
with:
8689
name: test-output-${{ matrix.version }}
8790
path: coherence-visualvm-tests/**/target/test-output/**/*
8891

8992
- name: Coherence VisualVM Plugin NBM
90-
uses: actions/upload-artifact@v4
93+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9194
with:
9295
name: coherence-visualvm-plugin-nbm-${{ matrix.version }}
9396
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*.nbm
9497

9598
- name: Coherence VisualVM Plugin Javadoc
96-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
97100
with:
98101
name: coherence-visualvm-plugin-javadoc-${{ matrix.version }}
99102
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*javadoc.jar

.github/workflows/test-against-snapshot-1440.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,24 @@ on:
3737
# Every day at midnight
3838
- cron: '0 0 * * *'
3939

40+
permissions:
41+
contents: read
42+
4043
jobs:
4144
build:
4245
runs-on: ubuntu-latest
4346
strategy:
4447
fail-fast: false
4548
matrix:
4649
coherenceVersion:
47-
- 14.1.1-0-23-SNAPSHOT
50+
- 14.1.1-0-25-SNAPSHOT
4851

4952
steps:
5053
- name: Checkout
51-
uses: actions/checkout@v4
54+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5255

5356
- name: Cache Maven packages
54-
uses: actions/cache@v4
57+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5558
with:
5659
path: ~/.m2
5760
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@@ -61,7 +64,7 @@ jobs:
6164
run: mvn -version && ant -version
6265

6366
- name: Set up JDK 11 for Plugin
64-
uses: actions/setup-java@v4
67+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6568
with:
6669
java-version: 11
6770
distribution: 'zulu'
@@ -80,20 +83,20 @@ jobs:
8083
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-ce/pom.xml --batch-mode -nsu -e -Dcoherence.version=$COH_VERSION clean install
8184
8285
- name: Build Artifacts test logs
83-
uses: actions/upload-artifact@v4
86+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8487
if: failure()
8588
with:
8689
name: test-output-${{ matrix.coherenceVersion }}
8790
path: coherence-visualvm-tests/**/target/test-output/**/*
8891

8992
- name: Coherence VisualVM Plugin NBM
90-
uses: actions/upload-artifact@v4
93+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9194
with:
9295
name: coherence-visualvm-plugin-nbm-${{ matrix.coherenceVersion }}
9396
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*.nbm
9497

9598
- name: Coherence VisualVM Plugin Javadoc
96-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
97100
with:
98101
name: coherence-visualvm-plugin-javadoc-${{ matrix.coherenceVersion }}
99102
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*javadoc.jar

.github/workflows/test-against-snapshot.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,34 @@ on:
3737
# Every day at midnight
3838
- cron: '0 0 * * *'
3939

40+
permissions:
41+
contents: read
42+
4043
jobs:
4144
build:
4245
runs-on: ubuntu-latest
4346
strategy:
4447
fail-fast: false
4548
matrix:
4649
coherenceVersion:
47-
- 25.03.3-SNAPSHOT
50+
- 15.1.1-0-2-SNAPSHOT
4851
- 25.09-SNAPSHOT
49-
- 22.06.14-SNAPSHOT
50-
- 14.1.2-0-4-SNAPSHOT
52+
- 22.06.16-SNAPSHOT
53+
- 14.1.2-0-6-SNAPSHOT
5154

5255
steps:
5356
- name: Checkout
54-
uses: actions/checkout@v4
57+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5558

5659
- name: Cache Maven packages
57-
uses: actions/cache@v4
60+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # 5.0.5
5861
with:
5962
path: ~/.m2
6063
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
6164
restore-keys: ${{ runner.os }}-m2-snapshots
6265

6366
- name: Set up JDK 17 for Build
64-
uses: actions/setup-java@v4
67+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6568
with:
6669
java-version: 17
6770
distribution: 'zulu'
@@ -86,20 +89,20 @@ jobs:
8689
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-topics/pom.xml -P topics --batch-mode -nsu -e -Dcoherence.version=$COH_VERSION clean install
8790
8891
- name: Build Artifacts test logs
89-
uses: actions/upload-artifact@v4
92+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9093
if: failure()
9194
with:
9295
name: test-output-${{ matrix.coherenceVersion }}
9396
path: coherence-visualvm-tests/**/target/test-output/**/*
9497

9598
- name: Coherence VisualVM Plugin NBM
96-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
97100
with:
98101
name: coherence-visualvm-plugin-nbm-${{ matrix.coherenceVersion }}
99102
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*.nbm
100103

101104
- name: Coherence VisualVM Plugin Javadoc
102-
uses: actions/upload-artifact@v4
105+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
103106
with:
104107
name: coherence-visualvm-plugin-javadoc-${{ matrix.coherenceVersion }}
105108
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*javadoc.jar

0 commit comments

Comments
 (0)