Dependabot, Renovate & Scorecard
Pinning (versions, hashes, digests, action SHAs) makes builds reproducible and tamper-evident, and also freezes every vulnerability in place. The answer is not to stop pinning but to automate the updates: a bot proposes each change as a pull request, CI scans and tests it, a human merges. Every update becomes a reviewed, recorded event instead of something that happened during a build.
Dependabot
Built into GitHub. Security updates (PRs for dependencies with known advisories) are a repository setting; version updates are configured in .github/dependabot.yml:
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
groups: # one PR for all minor/patch updates instead of twenty
minor-and-patch:
update-types: ["minor", "patch"]
cooldown: # don't propose versions younger than this
default-days: 5
open-pull-requests-limit: 10
- package-ecosystem: docker # bumps FROM … tags and digests
directory: "/"
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: "/" # scans .github/workflows/
schedule:
interval: weeklyWith github-actions enabled, Dependabot keeps SHA-pinned actions current too: it updates the SHA and the # v5.0.1 comment next to it.
Renovate
Renovate (Mend, open source) runs as a GitHub/GitLab/Bitbucket app or self-hosted, supports more package managers and is much more configurable. renovate.json:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigests",
"docker:pinDigests"
],
"minimumReleaseAge": "3 days",
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "!/^0/",
"groupName": "minor and patch updates",
"automerge": true
},
{
"matchDepTypes": ["devDependencies"],
"automerge": true
}
],
"vulnerabilityAlerts": { "labels": ["security"] }
}helpers:pinGitHubActionDigestsanddocker:pinDigestsconvert tags to SHAs/digests in the first PR, then keep them updated.minimumReleaseAgewaits before proposing a new version. Most malicious releases (compromised maintainer accounts, typosquats published under a popular name) are detected and pulled within hours or days; a short delay keeps you out of that window. Dependabot'scooldowndoes the same.automergefor low-risk groups is what keeps a team from drowning in PRs; it's safe only if CI (tests + scan gate) is trustworthy.
A model: release-age gating
from datetime import date
today = date(2026, 10, 24)
candidates = [ # (package, version, published, flagged later as malicious?)
("left-pad", "1.3.1", date(2026, 10, 23), True),
("lodash", "4.18.1", date(2026, 10, 19), False),
("chalk", "6.0.2", date(2026, 10, 22), False),
("express", "5.2.0", date(2026, 9, 30), False),
]
def proposals(min_age_days):
out = []
for name, version, published, _ in candidates:
age = (today - published).days
if age >= min_age_days:
out.append(f"{name}@{version}")
return out
for days in (0, 3, 7):
got = proposals(days)
bad = [f"{n}@{v}" for n, v, _, m in candidates if m and f"{n}@{v}" in got]
print(f"min age {days} days: proposes {', '.join(got)}" + (f" <- includes {bad[0]}" if bad else ""))min age 0 days: proposes left-pad@1.3.1, lodash@4.18.1, chalk@6.0.2, express@5.2.0 <- includes left-pad@1.3.1
min age 3 days: proposes lodash@4.18.1, express@5.2.0
min age 7 days: proposes express@5.2.0
The trade-off is visible: any delay avoids the bad release, and longer delays also hold back legitimate updates (chalk at three days, lodash as well at seven). Security updates for known vulnerabilities usually bypass the delay (Renovate's vulnerabilityAlerts, Dependabot security updates).
Pin actions by SHA
A GitHub Action reference like uses: some/action@v3 is a tag in someone else's repository: they, or anyone who compromises their account, can move it. In March 2025 that happened to tj-actions/changed-files: attackers retargeted its version tags to a malicious commit that dumped CI secrets into build logs, affecting thousands of repositories that used the tags. Workflows pinned to a full commit SHA were unaffected.
mkdir -p repo/.github/workflows && cd repo
cat > .github/workflows/ci.yml <<'YAML'
name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@v4
- uses: some-org/changed-files@main
- uses: ./.github/actions/local-build
- uses: docker://alpine@sha256:c0669ef34cdc14332c0f1ab0c2c01acb91d96014b172f1a76f3a39e63d1f0bda
YAML
grep -nE '^\s*-?\s*uses:' .github/workflows/*.yml | while IFS= read -r line; do
ref=$(echo "$line" | sed -E 's/.*uses:\s*([^ #]+).*/\1/')
case "$ref" in
./*) verdict="local, ok" ;;
docker://*@sha256:*) verdict="digest-pinned, ok" ;;
*@*) sha=${ref##*@}
if echo "$sha" | grep -qE '^[0-9a-f]{40}