Skip to content

Commit 05593ce

Browse files
committed
Use SHA instead of versions in GH actions
1 parent 25f9d49 commit 05593ce

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci-report.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323
steps:
2424
# Checkout target branch which has trusted code
2525
- name: Check out target branch
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2727
with:
2828
persist-credentials: false
2929
ref: ${{ github.ref }}
3030
- name: Set up Java 21
31-
uses: actions/setup-java@v4
31+
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # 4.6.0
3232
with:
3333
java-version: 21
3434
distribution: temurin
3535
# https://github.com/actions/cache/blob/main/examples.md#java---maven
3636
- name: Cache local Maven repository
37-
uses: actions/cache@v4
37+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 4.2.0
3838
with:
3939
path: ~/.m2/repository
4040
# use a different key than workflows running untrusted code
@@ -45,7 +45,7 @@ jobs:
4545
run: ./mvnw -v
4646
- name: Download GitHub Actions artifacts for the Develocity build scans
4747
id: downloadBuildScan
48-
uses: actions/download-artifact@v4
48+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
4949
with:
5050
pattern: build-scan-data-*
5151
github-token: ${{ github.token }}

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ jobs:
8383
- name: Support longpaths on Windows
8484
if: "startsWith(matrix.os.runs-on, 'windows')"
8585
run: git config --global core.longpaths true
86-
- uses: actions/checkout@v4
86+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
8787
with:
8888
persist-credentials: false
8989
- name: Set up Java ${{ matrix.os.java.version }}
90-
uses: actions/setup-java@v4
90+
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # 4.6.0
9191
with:
9292
java-version: ${{ matrix.os.java.version }}
9393
distribution: temurin
9494
# https://github.com/actions/cache/blob/main/examples.md#java---maven
9595
- name: Cache local Maven repository
96-
uses: actions/cache@v4
96+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 4.2.0
9797
with:
9898
path: ~/.m2/repository
9999
# use a different key than workflows running in trusted mode
@@ -113,7 +113,7 @@ jobs:
113113
# The actual publishing must be done in a separate job (see ci-report.yml).
114114
# We don't write to the remote cache as that would be unsafe.
115115
- name: Upload GitHub Actions artifact for the Develocity build scan
116-
uses: actions/upload-artifact@v4
116+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
117117
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
118118
with:
119119
name: build-scan-data-standalone-${{ matrix.os.name }}
@@ -129,7 +129,7 @@ jobs:
129129
DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY || '' }}"
130130

131131
- name: Upload GitHub Actions artifact for the Develocity build scan
132-
uses: actions/upload-artifact@v4
132+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
133133
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
134134
with:
135135
name: build-scan-data-incontainer-${{ matrix.os.name }}

0 commit comments

Comments
 (0)