Skip to content

Commit 87cad8d

Browse files
0x46616c6bOpenCode
andcommitted
chore: pin GitHub Actions to full commit SHAs for security hardening
Pin all GitHub Actions dependencies to their full commit SHAs instead of mutable version tags to prevent supply chain attacks. Each SHA is annotated with a version comment for readability. Co-Authored-By: OpenCode <noreply@opencode.ai>
1 parent f9e0786 commit 87cad8d

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/cla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: "CLA Assistant"
1616
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request'
17-
uses: cla-assistant/github-action@v2.6.1
17+
uses: cla-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
PERSONAL_ACCESS_TOKEN: ${{ secrets.OSS_CONTRIBUTOR_LICENSE_AGREEMENT }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
uses: Staffbase/gha-workflows/.github/workflows/template_release_drafter.yml@v12.0.1
10+
uses: Staffbase/gha-workflows/.github/workflows/template_release_drafter.yml@963c984dde02b0a8711f0d098aa9f8a7f2e50bca # v12.0.1
1111
secrets:
1212
app_id: ${{ vars.STAFFBASE_ACTIONS_APP_ID }}
1313
private_key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }}

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ runs:
185185
186186
- name: Set up Docker Buildx
187187
if: inputs.docker-username != '' && inputs.docker-password != ''
188-
uses: docker/setup-buildx-action@v4
188+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
189189

190190
- name: Login to Registry
191191
if: inputs.docker-username != '' && inputs.docker-password != ''
192-
uses: docker/login-action@v4
192+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
193193
with:
194194
registry: ${{ inputs.docker-registry }}
195195
username: ${{ inputs.docker-username }}
@@ -199,7 +199,7 @@ runs:
199199
- name: Build
200200
id: docker_build
201201
if: steps.preparation.outputs.build == 'true' && inputs.docker-username != '' && inputs.docker-password != ''
202-
uses: docker/build-push-action@v7
202+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
203203
with:
204204
context: ${{ inputs.working-directory }}
205205
push: ${{ inputs.docker-build-outputs == '' && steps.preparation.outputs.push || 'false' }}
@@ -276,7 +276,7 @@ runs:
276276
277277
- name: Checkout GitOps Repository
278278
if: inputs.gitops-token != ''
279-
uses: actions/checkout@v6
279+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
280280
with:
281281
repository: ${{ inputs.gitops-organization }}/${{ inputs.gitops-repository }}
282282
token: ${{ inputs.gitops-token }}
@@ -361,7 +361,7 @@ runs:
361361
env:
362362
UPWIND_CLIENT_SECRET: ${{ inputs.upwind-client-secret }}
363363
if: "${{ inputs.upwind-client-id != '' && env.UPWIND_CLIENT_SECRET != '' && inputs.upwind-organization-id != '' }}"
364-
uses: upwindsecurity/create-image-build-event-action@v3
364+
uses: upwindsecurity/create-image-build-event-action@3099fc1e1e002c6c2d7b7c635699944a708d260d # v3
365365
continue-on-error: true
366366
with:
367367
image: ${{ inputs.docker-image }}

0 commit comments

Comments
 (0)