Skip to content

Commit 299f1f3

Browse files
Pin GitHub action versions by hash
From security reason we should use a hash for GitHub action versions
1 parent a8a44dc commit 299f1f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737

3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4040
with:
4141
persist-credentials: false
4242

43-
- uses: actions/setup-java@v4
43+
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
4444
with:
4545
java-version: 21
4646
distribution: 'zulu'
@@ -54,7 +54,7 @@ jobs:
5454
run: ./mvnw verify -e -B -V -DdistributionFileName=apache-maven
5555

5656
- name: Upload built Maven
57-
uses: actions/upload-artifact@v4
57+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5858
if: ${{ matrix.os == 'ubuntu-latest' }}
5959
with:
6060
name: built-maven
@@ -103,7 +103,7 @@ jobs:
103103
echo "REPO_USER=$target_user" >> $GITHUB_ENV
104104
105105
- name: Checkout maven-integration-testing
106-
uses: actions/checkout@v4
106+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
107107
with:
108108
repository: ${{ env.REPO_USER }}/maven-integration-testing
109109
path: maven-integration-testing/
@@ -112,21 +112,21 @@ jobs:
112112

113113

114114
- name: Set up cache for ~/.m2/repository
115-
uses: actions/cache@v4
115+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
116116
with:
117117
path: ~/.m2/repository
118118
key: it-m2-repo-${{ matrix.os }}-${{ hashFiles('maven-integration-testing/**/pom.xml') }}
119119
restore-keys: |
120120
it-m2-repo-${{ matrix.os }}-
121121
122122
- name: Download built Maven
123-
uses: actions/download-artifact@v4
123+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
124124
with:
125125
name: built-maven
126126
path: built-maven/
127127

128128
- name: Set up JDK
129-
uses: actions/setup-java@v4
129+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
130130
with:
131131
java-version: ${{ matrix.java }}
132132
distribution: 'zulu'

0 commit comments

Comments
 (0)