Skip to content

Commit 95978a4

Browse files
committed
[ci] Pin GitHub Actions version with SHA
1 parent 937d4f5 commit 95978a4

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ runs:
55
using: 'composite'
66
steps:
77
- name: Set up JDK 21
8-
uses: actions/setup-java@v4
8+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #v4.7.1
99
with:
1010
distribution: temurin
1111
java-version: '21'
1212
- name: Cache local Maven repository
13-
uses: actions/cache@v4
13+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4
1414
with:
1515
path: |
1616
~/.m2/repository

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
shell: bash
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
2929

3030
- name: Setup Environment
3131
uses: ./.github/actions/setup
@@ -36,15 +36,15 @@ jobs:
3636
verify
3737
3838
- name: Upload screenshots of failed unit tests
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
4040
if: ${{ failure() }}
4141
with:
4242
name: screenshots-ubuntu-latest
4343
path: net.sourceforge.pmd.eclipse.plugin.test/screenshots
4444
if-no-files-found: ignore
4545

4646
- name: Upload update-site
47-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
4848
with:
4949
name: update-site
5050
path: net.sourceforge.pmd.eclipse.p2updatesite/target/net.sourceforge.pmd.eclipse.p2updatesite-*.zip
@@ -78,7 +78,7 @@ jobs:
7878

7979
runs-on: ${{ matrix.os }}
8080
steps:
81-
- uses: actions/checkout@v4
81+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
8282

8383
- name: Setup Environment
8484
uses: ./.github/actions/setup
@@ -92,7 +92,7 @@ jobs:
9292
-Dtarget.platform="${TARGET_PLATFORM}"
9393
9494
- name: Upload screenshots of failed unit tests
95-
uses: actions/upload-artifact@v4
95+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
9696
if: ${{ failure() }}
9797
with:
9898
name: screenshots-${{ matrix.os }}-${{ matrix.targetPlatform }}

.github/workflows/publish-release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
outputs:
3333
VERSION: ${{ steps.version.outputs.VERSION }}
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
3636
with:
3737
ref: ${{ github.event.workflow_run.head_branch }}
38-
- uses: actions/setup-java@v4
38+
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #v4.7.1
3939
with:
4040
distribution: 'temurin'
4141
java-version: '21'
4242
- name: Cache local Maven repository
43-
uses: actions/cache@v4
43+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4
4444
with:
4545
path: |
4646
~/.m2/repository
@@ -91,19 +91,19 @@ jobs:
9191
run:
9292
shell: bash
9393
steps:
94-
- uses: actions/checkout@v4
94+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
9595
with:
9696
ref: ${{ github.event.workflow_run.head_branch }}
9797

9898
- name: Set up JDK 21
99-
uses: actions/setup-java@v4
99+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #v4.7.1
100100
with:
101101
distribution: temurin
102102
java-version: '21'
103103
gpg-private-key: ${{ secrets.PMD_CI_GPG_PRIVATE_KEY }}
104104

105105
- name: Cache local Maven repository
106-
uses: actions/cache@v4
106+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4
107107
with:
108108
path: |
109109
~/.m2/repository
@@ -122,7 +122,7 @@ jobs:
122122
-Psign -DskipTests
123123
124124
- name: Upload update-site
125-
uses: actions/upload-artifact@v4
125+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
126126
with:
127127
name: update-site
128128
path: net.sourceforge.pmd.eclipse.p2updatesite/target/net.sourceforge.pmd.eclipse.p2updatesite-*.zip
@@ -137,15 +137,15 @@ jobs:
137137
run:
138138
shell: bash
139139
steps:
140-
- uses: actions/checkout@v4
140+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
141141
with:
142142
ref: ${{ github.event.workflow_run.head_branch }}
143-
- uses: actions/download-artifact@v4
143+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
144144
with:
145145
name: update-site
146146
- name: Prepare Release Notes
147147
run: .ci/files/prepare_release_notes.sh
148-
- uses: actions/create-github-app-token@v2
148+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e #v2.0.6
149149
id: pmd-actions-helper-app-token
150150
with:
151151
app-id: ${{ secrets.PMD_ACTIONS_HELPER_ID }}
@@ -179,7 +179,7 @@ jobs:
179179
run:
180180
shell: bash
181181
steps:
182-
- uses: actions/download-artifact@v4
182+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
183183
with:
184184
name: update-site
185185
- name: Setup ssh key for sourceforge
@@ -223,13 +223,13 @@ jobs:
223223
run:
224224
shell: bash
225225
steps:
226-
- uses: actions/checkout@v4
226+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
227227
with:
228228
ref: ${{ github.event.workflow_run.head_branch }}
229-
- uses: actions/download-artifact@v4
229+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
230230
with:
231231
name: update-site
232-
- uses: actions/create-github-app-token@v2
232+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e #v2.0.6
233233
id: pmd-actions-helper-app-token
234234
with:
235235
app-id: ${{ secrets.PMD_ACTIONS_HELPER_ID }}
@@ -238,7 +238,7 @@ jobs:
238238
repositories: pmd-eclipse-plugin-p2-site
239239
permission-contents: write
240240
- name: Prepare Local P2 Repository
241-
uses: actions/checkout@v4
241+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
242242
with:
243243
repository: pmd/pmd-eclipse-plugin-p2-site
244244
ref: gh-pages
@@ -274,7 +274,7 @@ jobs:
274274
run:
275275
shell: bash
276276
steps:
277-
- uses: actions/checkout@v4
277+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
278278
with:
279279
ref: ${{ github.event.workflow_run.head_branch }}
280280
- name: Prepare Release Notes

.github/workflows/publish-snapshot.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ jobs:
3030
outputs:
3131
VERSION: ${{ steps.version.outputs.VERSION }}
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
3434
with:
3535
ref: main
3636
- name: Set up JDK 21
37-
uses: actions/setup-java@v4
37+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #v4.7.1
3838
with:
3939
distribution: temurin
4040
java-version: '21'
4141
- name: Cache local Maven repository
42-
uses: actions/cache@v4
42+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4
4343
with:
4444
path: |
4545
~/.m2/repository
@@ -83,17 +83,17 @@ jobs:
8383
run:
8484
shell: bash
8585
steps:
86-
- uses: actions/checkout@v4
86+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
8787

8888
- name: Set up JDK 21
89-
uses: actions/setup-java@v4
89+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #v4.7.1
9090
with:
9191
distribution: temurin
9292
java-version: '21'
9393
gpg-private-key: ${{ secrets.PMD_CI_GPG_PRIVATE_KEY }}
9494

9595
- name: Cache local Maven repository
96-
uses: actions/cache@v4
96+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4
9797
with:
9898
path: |
9999
~/.m2/repository
@@ -112,7 +112,7 @@ jobs:
112112
-Psign -DskipTests
113113
114114
- name: Upload update-site
115-
uses: actions/upload-artifact@v4
115+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
116116
with:
117117
name: update-site
118118
path: net.sourceforge.pmd.eclipse.p2updatesite/target/net.sourceforge.pmd.eclipse.p2updatesite-*.zip
@@ -130,7 +130,7 @@ jobs:
130130
run:
131131
shell: bash
132132
steps:
133-
- uses: actions/download-artifact@v4
133+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
134134
with:
135135
name: update-site
136136
- name: Setup ssh key for sourceforge
@@ -174,10 +174,10 @@ jobs:
174174
run:
175175
shell: bash
176176
steps:
177-
- uses: actions/download-artifact@v4
177+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0
178178
with:
179179
name: update-site
180-
- uses: actions/create-github-app-token@v2
180+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e #v2.0.6
181181
id: pmd-actions-helper-app-token
182182
with:
183183
app-id: ${{ secrets.PMD_ACTIONS_HELPER_ID }}
@@ -186,7 +186,7 @@ jobs:
186186
repositories: pmd-eclipse-plugin-p2-site
187187
permission-contents: write
188188
- name: Prepare Local P2 Repository
189-
uses: actions/checkout@v4
189+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
190190
with:
191191
repository: pmd/pmd-eclipse-plugin-p2-site
192192
ref: gh-pages

0 commit comments

Comments
 (0)