Skip to content

Commit 9b8f642

Browse files
committed
Let Dependabot watch the pinned actions
Every action in this repo is pinned to a SHA with the version in a trailing comment, which is the right way to pin and also means nothing ever revisits them. The Node 20 deprecation had been printing on every job for weeks before it got looked at, and it only got looked at because an unrelated advisory turned the weekly scan red. Grouped into a single PR rather than one per action. ci.yml, vulncheck.yml and release.yml deliberately share the checkout and setup-go pins, so separate PRs would leave the three files disagreeing about the toolchain until the last one merged. This also covers the docker, goreleaser and golangci-lint action pins. Note this does not track the tool versions those actions take as inputs, so goreleaser v2.15.4 and golangci-lint v2.5.0 are still manual.
1 parent 94cc12f commit 9b8f642

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
3+
updates:
4+
# Action pins here are SHAs with the version in a trailing comment, and
5+
# nothing re-reads them until a workflow starts failing. The Node 20
6+
# deprecation arrived as a runner warning on every job for weeks before
7+
# anyone looked; this turns that class of change into a PR instead.
8+
# Dependabot updates the SHA and the comment together, so the pinning
9+
# stays intact.
10+
- package-ecosystem: github-actions
11+
directory: /
12+
schedule:
13+
interval: weekly
14+
day: monday
15+
# ci.yml, vulncheck.yml and release.yml pin the same checkout and
16+
# setup-go SHAs on purpose: a scan that runs a different toolchain
17+
# than the release build stops describing the published binaries.
18+
# Ungrouped, each action arrives as its own PR and the three files
19+
# only line up again once every one of them has merged. One grouped
20+
# PR either keeps them in step or fails as a unit.
21+
groups:
22+
actions:
23+
patterns:
24+
- '*'
25+
open-pull-requests-limit: 3

0 commit comments

Comments
 (0)