Skip to content

Commit e04f082

Browse files
authored
chore(security): harden Dependabot config with cooldowns and missing ecosystems (#8016)
## Summary This PR hardens `.github/dependabot.yml` against supply-chain risk in three ways: ### 1. Add `cooldown` to the existing `github-actions` entry Without a cooldown, a freshly-published (potentially compromised) Action version can land in this repo the same day it is released — before the security community has had time to detect a compromise. The 7-day default gives a window for malicious releases to be caught and pulled. ### 2. Add `pip` ecosystem (daily + cooldown) The repo contains **26+ `requirements*.txt` files** across `tools/`, `aws/lambda/`, `s3_management/`, and elsewhere with **no automated CVE update PRs** today. This entry scans from the repo root so Dependabot will discover all pip dependency files. ### 3. Add `terraform` ecosystem scoped to `/terraform-aws-github-runner` The OpenTofu provider constraints (`~> 5.5`, `~> 3.4.2`, etc.) are currently unmonitored. A separate PR tightens these to exact pins; this entry ensures future upgrades still get automated PRs. > ⚠️ **Known limitation:** Dependabot cooldown for terraform providers has a [known bug (dependabot/dependabot-core#13715)](dependabot/dependabot-core#13715). Exact provider pinning (tracked in a companion PR) is the primary supply-chain control for Terraform; this entry provides the update automation. --- ## Cooldown values used (all ecosystems) | Semver bump | Days held | |---|---| | major | 30 | | minor | 7 | | patch | 3 | | default | 7 | --- This change is part of a broader supply-chain hardening effort following a repository audit. See https://github.com/jordanconway/package-manager-hardening for the full methodology. Signed-off-by: Jordan Conway <jconway@linuxfoundation.org>
1 parent 63af42e commit e04f082

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
@@ -4,3 +4,28 @@ updates:
44
directory: '/'
55
schedule:
66
interval: 'weekly'
7+
cooldown:
8+
default-days: 7
9+
semver-major-days: 30
10+
semver-minor-days: 7
11+
semver-patch-days: 3
12+
13+
- package-ecosystem: 'pip'
14+
directory: '/'
15+
schedule:
16+
interval: 'daily'
17+
cooldown:
18+
default-days: 7
19+
semver-major-days: 30
20+
semver-minor-days: 7
21+
semver-patch-days: 3
22+
23+
- package-ecosystem: 'terraform'
24+
directory: '/terraform-aws-github-runner'
25+
schedule:
26+
interval: 'daily'
27+
cooldown:
28+
default-days: 7
29+
semver-major-days: 30
30+
semver-minor-days: 7
31+
semver-patch-days: 3

0 commit comments

Comments
 (0)