ci: pin GitHub Action digests in Renovate configuration

Add the pinGitHubActionDigests helper to improve CI security by using immutable commit SHA digests instead of mutable tags.
This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:41:05 +07:00
1 parent a452c05247
commit e1601685b7
1 file changed
+13 -42
+13 -42
View File
@@ -1,14 +1,10 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["config:recommended", "helpers:pinGitHubActionDigests"],
"config:recommended"
],
"timezone": "Asia/Jakarta", "timezone": "Asia/Jakarta",
"schedule": [ "schedule": ["before 10am on monday"],
"before 10am on monday"
],
"dependencyDashboard": true, "dependencyDashboard": true,
"dependencyDashboardTitle": "Renovate Dashboard", "dependencyDashboardTitle": "Renovate Dashboard",
@@ -23,15 +19,11 @@
"rebaseWhen": "conflicted", "rebaseWhen": "conflicted",
"rangeStrategy": "bump", "rangeStrategy": "bump",
"labels": [ "labels": ["dependencies"],
"dependencies"
],
"lockFileMaintenance": { "lockFileMaintenance": {
"enabled": true, "enabled": true,
"schedule": [ "schedule": ["before 10am on monday"],
"before 10am on monday"
],
"commitMessageAction": "maintain", "commitMessageAction": "maintain",
"commitMessageTopic": "Cargo lockfile" "commitMessageTopic": "Cargo lockfile"
}, },
@@ -39,60 +31,39 @@
"packageRules": [ "packageRules": [
{ {
"description": "Never automerge Cargo updates by default", "description": "Never automerge Cargo updates by default",
"matchManagers": [ "matchManagers": ["cargo"],
"cargo"
],
"automerge": false "automerge": false
}, },
{ {
"description": "Group RustCrypto updates together", "description": "Group RustCrypto updates together",
"matchManagers": [ "matchManagers": ["cargo"],
"cargo" "matchPackageNames": ["hmac", "md-5"],
],
"matchPackageNames": [
"hmac",
"md-5"
],
"groupName": "RustCrypto dependencies", "groupName": "RustCrypto dependencies",
"commitMessageTopic": "RustCrypto dependencies" "commitMessageTopic": "RustCrypto dependencies"
}, },
{ {
"description": "Keep socket/platform dependencies together but reviewed", "description": "Keep socket/platform dependencies together but reviewed",
"matchManagers": [ "matchManagers": ["cargo"],
"cargo" "matchPackageNames": ["socket2", "libc"],
],
"matchPackageNames": [
"socket2",
"libc"
],
"groupName": "socket dependencies", "groupName": "socket dependencies",
"commitMessageTopic": "socket dependencies" "commitMessageTopic": "socket dependencies"
}, },
{ {
"description": "Group GitHub Actions updates", "description": "Group GitHub Actions updates",
"matchManagers": [ "matchManagers": ["github-actions"],
"github-actions"
],
"groupName": "GitHub Actions", "groupName": "GitHub Actions",
"commitMessageTopic": "GitHub Actions" "commitMessageTopic": "GitHub Actions"
}, },
{ {
"description": "Automerge patch and minor GitHub Actions updates", "description": "Automerge patch and minor GitHub Actions updates",
"matchManagers": [ "matchManagers": ["github-actions"],
"github-actions" "matchUpdateTypes": ["patch", "minor"],
],
"matchUpdateTypes": [
"patch",
"minor"
],
"automerge": true, "automerge": true,
"platformAutomerge": true "platformAutomerge": true
}, },
{ {
"description": "Never automerge major updates", "description": "Never automerge major updates",
"matchUpdateTypes": [ "matchUpdateTypes": ["major"],
"major"
],
"automerge": false "automerge": false
} }
] ]