Skip to content

Commit d5f4c2e

Browse files
chore: pin actions to their hashes (#316)
1 parent 9923e5b commit d5f4c2e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.github/workflows/cleanup.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
packages: write
1515
steps:
1616
- name: Delete Images Older Than 90 Days
17-
uses: dataaxiom/ghcr-cleanup-action@v1.0.16
17+
uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
packages: akmods,akmods-zfs,akmods-extra,akmods-nvidia-open

.github/workflows/release-please.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
release-please:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: google-github-actions/release-please-action@v4
10+
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0
1111
with:
1212
release-type: simple
1313
package-name: release-please-action

.github/workflows/reusable-build.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout Repo
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4343

4444
- name: Get Kernel Version
4545
id: kernel-version
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Cache Kernel RPMs
5353
id: cache-kernel
54-
uses: actions/cache@v4
54+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
5555
with:
5656
path: ${{ env.KCPATH }}
5757
key: ${{ inputs.kernel_flavor }}-${{ steps.kernel-version.outputs.kernel_release }} # job outputs KCKEY
@@ -192,7 +192,7 @@ jobs:
192192

193193
steps:
194194
- name: Checkout Repo
195-
uses: actions/checkout@v4
195+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
196196

197197
- name: Create cache parent dir
198198
shell: bash
@@ -201,7 +201,7 @@ jobs:
201201
202202
- name: Cache Kernel RPMs
203203
id: cache-kernel
204-
uses: actions/cache@v4
204+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
205205
with:
206206
path: ${{ env.KCPATH }}
207207
key: ${{ needs.cache-kernel.outputs.KCKEY }}
@@ -290,7 +290,7 @@ jobs:
290290
291291
# Build metadata
292292
- name: Image Metadata
293-
uses: docker/metadata-action@v5
293+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
294294
id: meta
295295
with:
296296
images: |
@@ -322,7 +322,7 @@ jobs:
322322
# Build image using Buildah action
323323
- name: Build Image
324324
id: build_image
325-
uses: redhat-actions/buildah-build@v2
325+
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
326326
with:
327327
containerfiles: |
328328
./Containerfile.${{ matrix.cfile_suffix }}
@@ -339,7 +339,7 @@ jobs:
339339
oci: false
340340

341341
- name: Build Test Image
342-
uses: redhat-actions/buildah-build@v2
342+
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
343343
with:
344344
containerfiles: |
345345
./Containerfile.test
@@ -367,19 +367,19 @@ jobs:
367367
# https://github.com/macbre/push-to-ghcr/issues/12
368368
- name: Lowercase Registry
369369
id: registry_case
370-
uses: ASzc/change-string-case-action@v6
370+
uses: ASzc/change-string-case-action@d0603cd0a7dd490be678164909f65c7737470a7f # v6
371371
with:
372372
string: ${{ env.IMAGE_REGISTRY }}
373373

374374
- name: Push To GHCR
375-
uses: Wandalen/wretry.action@v3.8.0
375+
uses: Wandalen/wretry.action@e68c23e6309f2871ca8ae4763e7629b9c258e1ea # v3.8.0
376376
id: push
377377
if: github.event_name != 'pull_request'
378378
env:
379379
REGISTRY_USER: ${{ github.actor }}
380380
REGISTRY_PASSWORD: ${{ github.token }}
381381
with:
382-
action: redhat-actions/push-to-registry@v2
382+
action: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
383383
attempt_limit: 3
384384
attempt_delay: 15000
385385
with: |
@@ -392,15 +392,15 @@ jobs:
392392
--disable-content-trust
393393
394394
- name: Login to GitHub Container Registry
395-
uses: docker/login-action@v3
395+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
396396
if: github.event_name != 'pull_request'
397397
with:
398398
registry: ghcr.io
399399
username: ${{ github.actor }}
400400
password: ${{ secrets.GITHUB_TOKEN }}
401401

402402
# Sign container
403-
- uses: sigstore/cosign-installer@v3.8.1
403+
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
404404
if: github.event_name != 'pull_request'
405405

406406
- name: Sign container image

0 commit comments

Comments
 (0)