Skip to content

Commit 26a254e

Browse files
committed
Pin full length commit SHA for 3rd party actions.
This implements the recommendation to pin full length commit SHAs instead of versions or branches when using 3rd-party GitHub Actions to protect from supply chain attacks. This has been happening more often recently, with a number of popular actions having all of their tags updated with a buried vulnerability. While the new notation is more verbose, a bit ugly, and requires every update to be applied manually, we can rely on Dependabot to handle that for us to make it more manageable.
1 parent 37b41ea commit 26a254e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ jobs:
2222
steps:
2323

2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626

2727
# User PHP 7.4 here for compatibility with the WordPress codesniffer rules.
2828
- name: Setup PHP
29-
uses: shivammathur/setup-php@v2
29+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
3030
with:
3131
php-version: '7.3'
3232
coverage: none
3333
tools: composer, cs2pr
3434

35-
- uses: technote-space/get-diff-action@v6
35+
- uses: technote-space/get-diff-action@f27caffdd0fb9b13f4fc191c016bb4e0632844af # v6.1.2
3636
with:
3737
SUFFIX_FILTER: .php
3838

@@ -42,7 +42,7 @@ jobs:
4242
if: "!! env.GIT_DIFF"
4343

4444
- name: Cache Composer vendor directory
45-
uses: actions/cache@v4
45+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
4646
with:
4747
path: ${{ steps.composer-cache.outputs.dir }}
4848
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

.github/workflows/satis-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: echo ::set-output name=VERSION::${GITHUB_REF##*/}
2323

2424
- name: Repository Dispatch
25-
uses: peter-evans/repository-dispatch@v3
25+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
2626
with:
2727
token: ${{ secrets.WEBHOOK_TOKEN }}
2828
repository: newfold-labs/satis

0 commit comments

Comments
 (0)