Skip to content

Commit 3b5ab5f

Browse files
authored
Allow renovate to update GitHub Actions (#35)
1 parent 7a5bcc9 commit 3b5ab5f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

renovate.json5 renamed to .github/renovate.json5

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@
77
schedule: ["before 4am on Monday"],
88
semanticCommits: "disabled",
99
separateMajorMinor: false,
10-
enabledManagers: ["pre-commit", "pep621"],
10+
enabledManagers: ["pre-commit", "pep621", "github-actions"],
1111
"pre-commit": {
1212
enabled: true,
1313
},
1414
lockFileMaintenance: {
1515
enabled: true,
1616
},
1717
packageRules: [
18+
// Pin GitHub Actions to immutable SHAs.
19+
{
20+
matchDepTypes: ["action"],
21+
pinDigests: true,
22+
},
23+
// Annotate GitHub Actions SHAs with a SemVer version.
24+
{
25+
extends: ["helpers:pinGitHubActionDigests"],
26+
extractVersion: "^(?<version>v?\\d+\\.\\d+\\.\\d+)$",
27+
versioning: "regex:^v?(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$",
28+
},
1829
{
1930
groupName: "prek dependencies",
2031
matchManagers: ["pre-commit"],

0 commit comments

Comments
 (0)