Skip to content

Commit 74b92e1

Browse files
authored
Pin SHA of third-party GitHub Actions (#782)
The full-version Git tags used by Actions are mutable (as seen in recent events in the wider GitHub Actions community), so pinning third-party Actions to a SHA is recommended: https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions The version tag has been added after the pin as a comment (as a readability aid) in a format that Dependabot will keep up to date: dependabot/dependabot-core#4691 I've also enabled Dependabot grouping for GitHub Actions updates to reduce PR noise. GUS-W-18051077.
1 parent 48ad41a commit 74b92e1

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ updates:
2020
directory: "/"
2121
schedule:
2222
interval: "monthly"
23+
groups:
24+
github-actions:
25+
update-types:
26+
- "minor"
27+
- "patch"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
bundler-cache: true
4747
ruby-version: "3.2"
4848
- name: Install PHP and Composer
49-
uses: shivammathur/setup-php@v2
49+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
5050
with:
5151
php-version: "8.3"
5252
tools: "composer:2.8"

.github/workflows/platform-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
sudo apt-get update
147147
sudo apt-get install dos2unix
148148
- name: Install PHP and Composer
149-
uses: shivammathur/setup-php@v2
149+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
150150
with:
151151
php-version: "8.2"
152152
tools: "composer:2.8"
@@ -332,7 +332,7 @@ jobs:
332332
- name: Checkout
333333
uses: actions/checkout@v4
334334
- name: Install PHP and Composer
335-
uses: shivammathur/setup-php@v2
335+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
336336
with:
337337
php-version: "8.2"
338338
tools: "composer:2.8"

0 commit comments

Comments
 (0)