Skip to content

Commit fe38aa0

Browse files
CopilotStensel8
andauthored
chore: expand dependency automation for version bumps and SHA pinning (#59)
## Summary This PR tightens dependency automation to cover version bumps and GitHub Actions SHA pinning consistently across the repo. It removes overlapping config and scopes both Renovate and Dependabot to the dependency surfaces that actually exist. - **Renovate consolidation** - Removed duplicate `.github/renovate.json` and centralized policy in root `renovate.json`. - Enabled managers for `github-actions`, `gomod`, and `regex`. - Added regex managers to track workflow Hugo versions in both forms used in this repo. - **SHA pinning + update behavior** - Enforced digest pinning behavior for GitHub Actions updates (`pinDigests`). - Kept dependency PR flow bounded via concurrency/hourly limits and dependency labeling. - **Dependabot alignment** - Kept active ecosystems: `github-actions`, `gomod`. - Removed unused ecosystems (`pip`, `gitsubmodule`) since no matching manifests are present. ```json { "matchManagers": ["github-actions"], "groupName": "github actions", "pinDigests": true } ``` ## Type of change <!-- Check all that apply --> - [x] `chore` — maintenance (dependencies, config, CI/CD) > [PR title and commit types must follow these standards — view the contributing guide](https://github.com/Stensel8/Zephyrus-Linux/blob/main/CONTRIBUTING.md#commit-messages) ## Checklist - [x] PR title follows the commit convention (e.g. `fix: correct nmcli command in eduroam guide`) - [x] Both EN and NL versions updated (if applicable) - [x] Media is in AVIF format (not PNG/JPG) - [x] No broken image references (`/images/*.avif` all exist in `static/images/`) - [x] Tested locally with `hugo server` --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Stensel8 <102481635+Stensel8@users.noreply.github.com>
1 parent 68b091e commit fe38aa0

3 files changed

Lines changed: 44 additions & 44 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,18 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7-
commit-message:
8-
prefix: "chore"
9-
10-
- package-ecosystem: "gitsubmodule"
11-
directory: "/"
12-
schedule:
13-
interval: "weekly"
7+
labels:
8+
- "dependencies"
9+
open-pull-requests-limit: 5
1410
commit-message:
1511
prefix: "chore"
1612

1713
- package-ecosystem: "gomod"
1814
directory: "/"
1915
schedule:
2016
interval: "weekly"
21-
commit-message:
22-
prefix: "chore"
23-
24-
- package-ecosystem: "pip"
25-
directory: "/"
26-
schedule:
27-
interval: "weekly"
17+
labels:
18+
- "dependencies"
19+
open-pull-requests-limit: 5
2820
commit-message:
2921
prefix: "chore"

.github/renovate.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

renovate.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
3+
"extends": ["config:recommended"],
4+
"timezone": "Europe/Amsterdam",
5+
"labels": ["dependencies"],
6+
"enabledManagers": ["github-actions", "gomod", "regex"],
7+
"prHourlyLimit": 2,
8+
"prConcurrentLimit": 5,
9+
"packageRules": [
10+
{
11+
"matchManagers": ["github-actions"],
12+
"groupName": "github actions",
13+
"pinDigests": true
14+
},
15+
{
16+
"matchManagers": ["gomod"],
17+
"groupName": "go modules"
18+
}
19+
],
20+
"customManagers": [
21+
{
22+
"customType": "regex",
23+
"managerFilePatterns": ["^\\.github/workflows/.*\\.ya?ml$"],
24+
"matchStrings": [
25+
"HUGO_VERSION:\\s*(?<currentValue>\\d+\\.\\d+\\.\\d+)"
26+
],
27+
"depNameTemplate": "gohugoio/hugo",
28+
"datasourceTemplate": "github-releases",
29+
"versioningTemplate": "semver"
30+
},
31+
{
32+
"customType": "regex",
33+
"managerFilePatterns": ["^\\.github/workflows/.*\\.ya?ml$"],
34+
"matchStrings": [
35+
"hugo-version:\\s*['\\\"]?(?<currentValue>\\d+\\.\\d+\\.\\d+)['\\\"]?"
36+
],
37+
"depNameTemplate": "gohugoio/hugo",
38+
"datasourceTemplate": "github-releases",
39+
"versioningTemplate": "semver"
40+
}
541
]
642
}

0 commit comments

Comments
 (0)