Skip to content

Commit a62831c

Browse files
committed
ci: pin GitHub Actions to commit SHAs
1 parent f8d9b69 commit a62831c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3636

3737
- name: Setup PHP
38-
uses: shivammathur/setup-php@v2
38+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
3939
with:
4040
php-version: 7.4
4141
ini-values: post_max_size=256M, max_execution_time=120
@@ -46,15 +46,15 @@ jobs:
4646
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
4747
4848
- name: Cache Composer Downloads
49-
uses: actions/cache@v4
49+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5050
with:
5151
path: ${{ steps.composer-cache.outputs.dir }}
5252
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
5353
restore-keys: |
5454
${{ runner.os }}-composer-
5555
5656
- name: Cache PHP dependencies
57-
uses: actions/cache@v4
57+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5858
with:
5959
path: vendor
6060
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
@@ -78,7 +78,7 @@ jobs:
7878
vendor/bin/behat --ansi
7979
8080
- name: Archive phar
81-
uses: actions/upload-artifact@v4
81+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8282
with:
8383
name: wp-launch-check-phar
8484
path: wp_launch_check.phar
@@ -93,21 +93,21 @@ jobs:
9393
contents: write
9494
steps:
9595
- name: Checkout
96-
uses: actions/checkout@v4
96+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
9797

9898
- name: Download Phar
99-
uses: actions/download-artifact@v4
99+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
100100
with:
101101
name: wp-launch-check-phar
102102

103103
- name: Generate changelog
104104
id: changelog
105-
uses: metcalfc/changelog-generator@v1.0.0
105+
uses: metcalfc/changelog-generator@e5306b306fa2e34f05258789e0e5c526c1bd4352 # v1.0.0
106106
with:
107107
myToken: ${{ secrets.ACCESS_TOKEN }}
108108

109109
- name: Release
110-
uses: softprops/action-gh-release@v1
110+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
111111
with:
112112
token: ${{ secrets.ACCESS_TOKEN }}
113113
body: ${{ steps.changelog.outputs.changelog }}

.github/workflows/validate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4040

4141
- name: Setup PHP
42-
uses: shivammathur/setup-php@v2
42+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
4343
with:
4444
php-version: 7.4
4545
ini-values: post_max_size=256M, max_execution_time=120
@@ -50,15 +50,15 @@ jobs:
5050
echo "::set-output name=dir::$(composer config cache-files-dir)"
5151
5252
- name: Cache Composer Downloads
53-
uses: actions/cache@v2
53+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
5454
with:
5555
path: ${{ steps.composer-cache.outputs.dir }}
5656
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
5757
restore-keys: |
5858
${{ runner.os }}-composer-
5959
6060
- name: Cache PHP dependencies
61-
uses: actions/cache@v2
61+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
6262
with:
6363
path: vendor
6464
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}

0 commit comments

Comments
 (0)