Skip to content

Commit 65f39fc

Browse files
authored
GH Actions: fix pins and change Dependabot frequency (#362)
* GH Actions: fix pins ... to allow Dependabot to keep updating them. * Dependabot: update config :point_right: Important: this is for **version** updates only, not for security updates, which are handled separately and don't depend on this configuration. --- This commit makes the following changes to the Dependabot config to reduce the number of Dependabot PRs, while still keeping the workflows up to date with a reasonable frequency: * It introduces a "group". By default Dependabot raises individual PRs for each update. Now, it will group updates to new minor or patch release for all action runners into a single PR. Updates to new major releases of action runners will still be raised as individual PRs. * It changes the schedule from `weekly` (on Monday, at whatever time this repo reaches the front of the HUGE queue which it will always have on Monday) to twice a month at a specific time which is not midnight. Aside from making the PRs less frequent, it should also make the arrival time more predictable as the queue created at 22:10 (in whatever timezone Dependabot runs in) will be next to nothing as it would need more repos to use this exact configuration. Refs: * https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/optimizing-pr-creation-version-updates * https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference --------- Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
1 parent 51eedc0 commit 65f39fc

File tree

3 files changed

+26
-19
lines changed

3 files changed

+26
-19
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ updates:
88
- package-ecosystem: "github-actions"
99
directory: "/"
1010
schedule:
11-
interval: "weekly"
11+
interval: "cron"
12+
cronjob: "10 22 5,20 * *" # At 22:10, every 5th and 20th day of the month.
1213
open-pull-requests-limit: 5
1314
commit-message:
1415
prefix: "GH Actions:"
16+
groups:
17+
action-runners:
18+
applies-to: version-updates
19+
update-types:
20+
- "minor"
21+
- "patch"

.github/workflows/csqa.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030

3131
- name: Install PHP
32-
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
32+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
3333
with:
3434
php-version: "latest"
3535
coverage: none
@@ -42,14 +42,14 @@ jobs:
4242
# Install dependencies and handle caching in one go.
4343
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
4444
- name: Install Composer dependencies
45-
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
45+
uses: "ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947" # 3.2.0
4646
with:
4747
# Bust the cache at least once a month - output format: YYYY-MM.
4848
custom-cache-suffix: $(date -u "+%Y-%m")
4949

5050
# Validate the XML file.
5151
- name: Validate ruleset against schema
52-
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1
52+
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
5353
with:
5454
pattern: "VariableAnalysis/ruleset.xml"
5555
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
@@ -74,10 +74,10 @@ jobs:
7474

7575
steps:
7676
- name: Checkout code
77-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
77+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7878

7979
- name: Install PHP
80-
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
80+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
8181
with:
8282
php-version: "8.1"
8383
coverage: none
@@ -86,7 +86,7 @@ jobs:
8686
# Dependencies need to be installed to make sure the PHPUnit classes are recognized.
8787
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
8888
- name: Install Composer dependencies
89-
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
89+
uses: "ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947" # 3.2.0
9090
with:
9191
# Bust the cache at least once a month - output format: YYYY-MM.
9292
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -104,10 +104,10 @@ jobs:
104104

105105
steps:
106106
- name: Checkout code
107-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
107+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
108108

109109
- name: Install PHP
110-
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
110+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
111111
with:
112112
php-version: "8.1"
113113
coverage: none
@@ -116,7 +116,7 @@ jobs:
116116
# Dependencies need to be installed to make sure the PHPUnit classes are recognized.
117117
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
118118
- name: Install Composer dependencies
119-
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
119+
uses: "ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947" # 3.2.0
120120
with:
121121
# Bust the cache at least once a month - output format: YYYY-MM.
122122
custom-cache-suffix: $(date -u "+%Y-%m")

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101

102102
steps:
103103
- name: Checkout code
104-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
104+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
105105

106106
- name: Setup ini config
107107
id: set_ini
@@ -115,7 +115,7 @@ jobs:
115115
fi
116116
117117
- name: Install PHP
118-
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
118+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
119119
with:
120120
php-version: ${{ matrix.php }}
121121
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
@@ -131,7 +131,7 @@ jobs:
131131
# Install dependencies and handle caching in one go.
132132
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
133133
- name: Install Composer dependencies
134-
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
134+
uses: "ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947" # 3.2.0
135135
with:
136136
# For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
137137
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
@@ -179,7 +179,7 @@ jobs:
179179

180180
steps:
181181
- name: Checkout code
182-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
182+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
183183

184184
- name: Setup ini config
185185
id: set_ini
@@ -193,7 +193,7 @@ jobs:
193193
fi
194194
195195
- name: Install PHP
196-
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
196+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
197197
with:
198198
php-version: ${{ matrix.php }}
199199
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
@@ -206,7 +206,7 @@ jobs:
206206
composer require --no-update squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}"
207207
208208
- name: Install Composer dependencies
209-
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
209+
uses: "ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947" # 3.2.0
210210
with:
211211
# Bust the cache at least once a month - output format: YYYY-MM.
212212
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -245,7 +245,7 @@ jobs:
245245

246246
- name: Upload coverage results to Coveralls
247247
if: ${{ success() }}
248-
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2
248+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
249249
with:
250250
format: clover
251251
file: build/logs/clover.xml
@@ -258,6 +258,6 @@ jobs:
258258

259259
steps:
260260
- name: Coveralls Finished
261-
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2
261+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
262262
with:
263263
parallel-finished: true

0 commit comments

Comments
 (0)