Skip to content

Commit 51f4052

Browse files
Merge pull request #8513 from jdarwood007/lockActions
[3.0] Lock actions
2 parents 603b2cb + 94870d7 commit 51f4052

5 files changed

Lines changed: 14 additions & 15 deletions

File tree

.github/workflows/crowdin_wf.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
- name: Checkout
3131
# This prevents all the forks from attempting to run the interface...
3232
if: env.CROWDIN_API_TOKEN != null
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
3434

3535
- name: crowdin-action
3636
# This prevents all the forks from attempting to run the interface...
3737
if: env.CROWDIN_API_TOKEN != null
3838
# You need to pin to a specific version for some reason...
39-
uses: crowdin/github-action@v1
39+
uses: crowdin/github-action@2cc7959c565767d6bc118118d6df3b63bf361370 #2.6.1
4040
with:
4141
# Push sources (the english files) to CrowdIn; do not push translations (non-english) in either direction
4242
upload_sources: true

.github/workflows/crowdin_wf_next.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ jobs:
3434
- name: Checkout
3535
# This prevents all the forks from attempting to run the interface...
3636
if: env.CROWDIN_API_TOKEN != null
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
3838

3939
- name: crowdin-action
4040
# This prevents all the forks from attempting to run the interface...
4141
if: env.CROWDIN_API_TOKEN != null
42-
# You need to pin to a specific version for some reason...
43-
uses: crowdin/github-action@v1
42+
uses: crowdin/github-action@2cc7959c565767d6bc118118d6df3b63bf361370 #2.6.1
4443
with:
4544
# Push sources (the english files) to CrowdIn; do not push translations (non-english) in either direction
4645
upload_sources: true

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: PHP-CS-Fixer
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
1414

1515
- name: Get changed files
1616
id: changed-files

.github/workflows/php.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ name: PHP Check
33
on:
44
push:
55
branches:
6-
- release-2.1
6+
- release-3.0
77
pull_request:
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
1515

1616
- name: Cache Composer packages
1717
id: composer-cache
18-
uses: actions/cache@v4
18+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf #4.2.2
1919
with:
2020
path: vendor
2121
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -45,17 +45,17 @@ jobs:
4545

4646
name: PHP ${{ matrix.php }} Syntax Check
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
4949

5050
- name: Setup PHP ${{ matrix.php }}
51-
uses: shivammathur/setup-php@v2
51+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 #2.32.0
5252
with:
5353
php-version: ${{ matrix.php }}
5454
coverage: none
5555

5656
- name: Cache Composer packages
5757
id: composer-cache
58-
uses: actions/cache@v4
58+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf #4.2.2
5959
with:
6060
path: vendor
6161
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

.github/workflows/update-year.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
1313

1414
- name: Set current year environment variable
1515
run: echo "CURRENT_YEAR=$(date +'%Y')" >> $GITHUB_ENV
@@ -34,15 +34,15 @@ jobs:
3434
sed -i "s/@copyright [0-9]\{4\}/@copyright ${{ env.CURRENT_YEAR }}/" $file
3535
done
3636
37-
- name: Update year in PHP files
37+
- name: Update year in PHP files
3838
run: |
3939
for file in SSI.php proxy.php cron.php index.php other/*.php; do
4040
sed -i "s/@copyright [0-9]\{4\}/@copyright ${{ env.CURRENT_YEAR }}/" $file
4141
sed -i "s/define('SMF_SOFTWARE_YEAR', '[0-9]\{4\}');/define('SMF_SOFTWARE_YEAR', '${{ env.CURRENT_YEAR }}');/" $file
4242
done
4343
4444
- name: Create Pull Request
45-
uses: peter-evans/create-pull-request@v7
45+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #7.0.8
4646
with:
4747
token: ${{ secrets.GITHUB_TOKEN }}
4848
commit-message: Update year to ${{ env.CURRENT_YEAR }}

0 commit comments

Comments
 (0)