Skip to content

Commit d62c13c

Browse files
committed
Pin GitHub Actions to commit hashes for security
Pin all actions to specific commit SHAs to prevent supply chain attacks and ensure reproducible builds. Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f616fff commit d62c13c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/check-release-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ on:
1010
jobs:
1111
check_release_notes:
1212
name: Notes are either written, or there are none
13-
uses: packit/.github/.github/workflows/check-release-notes.yml@main
13+
uses: packit/.github/.github/workflows/check-release-notes.yml@2837c96caf71966609451ad0323552ef4be11a23
1414
with:
1515
description: ${{ github.event.pull_request.body }}

.github/workflows/opened-prs-to-the-board.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
if: github.event.pull_request.draft == false
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/add-to-project@v0.3.0
11+
- uses: actions/add-to-project@a9f041ddd462ed185893ea1024cec954f50dbe42 # v0.3.0
1212
with:
1313
project-url: https://github.com/orgs/packit/projects/14
1414
github-token: ${{ secrets.RELEASEBOT_GITHUB_TOKEN }}

.github/workflows/rebuild-and-push-images.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
image: packit-service-tests
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2626

2727
- name: Install QEMU dependency
2828
run: |
@@ -50,7 +50,7 @@ jobs:
5050
- name: Build Image
5151
id: build-image
5252
# https://github.com/marketplace/actions/buildah-build
53-
uses: redhat-actions/buildah-build@v2
53+
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
5454
with:
5555
dockerfiles: ${{ matrix.dockerfile }}
5656
image: ${{ matrix.image }}
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Push To Quay
6565
# https://github.com/marketplace/actions/push-to-registry
66-
uses: redhat-actions/push-to-registry@v2
66+
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
6767
with:
6868
image: ${{ steps.build-image.outputs.image }}
6969
tags: ${{ steps.build-image.outputs.tags }}

0 commit comments

Comments
 (0)