Skip to content

Commit 1164ab6

Browse files
authored
Pinned GHA to commit SHA to avoid supply chain attack. (#49)
1 parent c1e52b2 commit 1164ab6

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/assign-author.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ jobs:
1515

1616
steps:
1717
- name: Assign author
18-
uses: toshimaru/auto-author-assign@v2.1.1
18+
# See https://github.com/toshimaru/auto-author-assign/releases
19+
uses: toshimaru/auto-author-assign@16f0022cf3d7970c106d8d1105f75a1165edb516 # v2.1.1

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
fetch-depth: 0
2525

2626
- name: Install SSH key
27-
uses: shimataro/ssh-key-action@v2
27+
# See https://github.com/shimataro/ssh-key-action/releases
28+
uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4 # v2.7.0
2829
with:
2930
key: ${{ secrets.DEPLOY_SSH_KEY }}
3031
known_hosts: unnecessary

.github/workflows/draft-release-notes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Draft release notes
23-
uses: release-drafter/release-drafter@v6
23+
# See https://github.com/release-drafter/release-drafter/releases
24+
uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ jobs:
7373

7474
steps:
7575
- name: Checkout code
76-
uses: actions/checkout@v4
76+
# See https://github.com/actions/checkout/releases
77+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7778

7879
- name: Cache Composer dependencies
79-
uses: actions/cache@v4
80+
# See https://github.com/actions/cache/releases
81+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
8082
with:
8183
path: /tmp/composer-cache
8284
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
@@ -91,7 +93,8 @@ jobs:
9193
sudo ldconfig
9294
9395
- name: Setup PHP
94-
uses: shivammathur/setup-php@v2
96+
# See https://github.com/shivammathur/setup-php/releases
97+
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
9598
with:
9699
php-version: ${{ matrix.php-version }}
97100
extensions: gd, sqlite, pdo_sqlite
@@ -170,22 +173,24 @@ jobs:
170173
CI_CHECK_COVERAGE_IGNORE_FAILURE: ${{ vars.CI_CHECK_COVERAGE_IGNORE_FAILURE || 0 }}
171174

172175
- name: Upload test results as an artifact
173-
uses: actions/upload-artifact@v4
176+
# See https://github.com/actions/upload-artifact/releases
177+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
174178
if: always()
175179
with:
176180
name: Artifacts (${{ matrix.name }})
177181
path: build/web/sites/simpletest/browser_output
178182

179183
- name: Upload coverage report as an artifact
180-
uses: actions/upload-artifact@v4
184+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
181185
with:
182186
name: ${{github.job}}-code-coverage-report-${{ matrix.name }}
183187
path: ./.logs/coverage/phpunit/.coverage-html
184188
include-hidden-files: true
185189
if-no-files-found: error
186190

187191
- name: Upload coverage report to Codecov
188-
uses: codecov/codecov-action@v5
192+
# See https://github.com/codecov/codecov-action/releases
193+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
189194
if: ${{ env.CODECOV_TOKEN != '' }}
190195
with:
191196
files: ./.logs/coverage/phpunit/cobertura.xml

0 commit comments

Comments
 (0)