Skip to content

Commit 8417700

Browse files
authored
Merge pull request #676 from newfold-labs/gha/pin-full-length-shas
Pin full length commit SHA for 3rd party actions.
2 parents 01129c8 + 5547042 commit 8417700

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/lint-check-php.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@v3
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
PATTERNS: |
3838
**/*.php
@@ -44,7 +44,7 @@ jobs:
4444
if: "!! env.GIT_DIFF"
4545

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

.github/workflows/lint-check-spa.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout Repository
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525

2626
# Install Node and npm
2727
- name: Setup Node.js
28-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2929
with:
3030
node-version: 16.x
3131
cache: 'npm'
3232

3333
# Checks if node_modules exists in the cache.
3434
- name: Cache node_modules directory
3535
id: cache
36-
uses: actions/cache@v4
36+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
3737
with:
3838
path: node_modules
3939
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -49,7 +49,7 @@ jobs:
4949
if: steps.cache.outputs.cache-hit != 'true'
5050

5151
# Gets the files changed wrt to trunk and filters out the js files.
52-
- uses: technote-space/get-diff-action@v6
52+
- uses: technote-space/get-diff-action@f27caffdd0fb9b13f4fc191c016bb4e0632844af # v6.1.2
5353
with:
5454
PATTERNS: |
5555
+(src)/**/*.js
@@ -61,7 +61,7 @@ jobs:
6161
if: "!! env.GIT_DIFF"
6262

6363
# Gets the files changed wrt to trunk and filters out the SASS files.
64-
- uses: technote-space/get-diff-action@v6
64+
- uses: technote-space/get-diff-action@f27caffdd0fb9b13f4fc191c016bb4e0632844af # v6.1.2
6565
with:
6666
PATTERNS: |
6767
+(src)/**/*.scss

.github/workflows/prepare-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616

1717
- name: Checkout trunk
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Create Release Branch
2121
run: |
@@ -42,20 +42,20 @@ jobs:
4242
git commit -m "Update boostrap.php to $new_version"
4343
4444
- name: Setup PHP
45-
uses: shivammathur/setup-php@v2
45+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
4646
with:
4747
php-version: '8.1'
4848
coverage: none
4949
tools: composer, cs2pr
5050

5151
- name: Setup Node.js
52-
uses: actions/setup-node@v3
52+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
5353
with:
5454
node-version: 16.x
5555

5656
- name: Setup Registry
5757
run: printf "@newfold-labs:registry=https://npm.pkg.github.com/\n//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
58-
58+
5959
- name: Log Debug Information
6060
run: |
6161
php --version

.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 "VERSION=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
2323

2424
- name: Repository Dispatch
25-
uses: peter-evans/repository-dispatch@v1
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)