TExcelTAD
Home › Software Supply Chain Security: SBOM, SLSA & Sigstore › Dependabot, Renovate & Scorecard

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:

yaml
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: weekly

With 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:

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:pinGitHubActionDigests and docker:pinDigests convert tags to SHAs/digests in the first PR, then keep them updated.
  • minimumReleaseAge waits 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's cooldown does the same.
  • automerge for 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

python · try it yourself
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.

bash · try it yourself
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}
  

; then verdict="SHA-pinned, ok"; else verdict="UNPINNED (@$sha)"; fi ;;
    *)                            verdict="UNPINNED" ;;
  esac
  short=$(echo "$ref" | sed -E 's/([0-9a-f]{12})[0-9a-f]{28,}/\1.../')
  printf '%-48s %s\n' "$short" "$verdict"
done
actions/checkout@08c6903cd8c0...                 SHA-pinned, ok
actions/setup-node@v4                            UNPINNED (@v4)
some-org/changed-files@main                      UNPINNED (@main)
./.github/actions/local-build                    local, ok
docker://alpine@sha256:c0669ef34cdc...           digest-pinned, ok

The SHA in the first line is an example value; take real SHAs from the action's release page (and let the update bot maintain them). Tools such as pinact, ratchet or StepSecurity's secure-repo rewrite workflows to SHA pins in one go, and the OpenSSF Scorecard's Pinned-Dependencies check reports what's left.

OpenSSF Scorecard

Scorecard runs automated checks against a repository and scores each from 0 to 10. It's useful in two directions: to harden your own repositories, and to assess dependencies before adopting them.

Check Looks for
Pinned-Dependencies actions, Dockerfile FROMs and install commands pinned by hash
Token-Permissions workflows declaring least-privilege permissions:
Dangerous-Workflow pull_request_target / workflow_run patterns that run untrusted code with secrets
Branch-Protection, Code-Review required reviews before merging
Dependency-Update-Tool Dependabot or Renovate configured
Signed-Releases release assets with signatures or provenance
Maintained, Vulnerabilities, Security-Policy, SAST, Fuzzing, Binary-Artifacts, … project health signals
bash
# needs network and a GitHub token (GITHUB_AUTH_TOKEN)
scorecard --repo=github.com/acme/shop --checks=Pinned-Dependencies,Token-Permissions,Dangerous-Workflow

Scores for many popular projects are published at securityscorecards.dev (and shown on deps.dev); the ossf/scorecard-action runs it on every push and uploads results to code scanning. Treat scores as signals, not verdicts: a 4/10 project may be well maintained by one careful person, and a 9/10 project may still ship a bug.

Test yourself

Why can uses: some/action@v3 be dangerous even if v3 was reviewed?

  1. Tags are slow to resolve
  2. The action's owner (or an attacker with their access) can move the tag to different code
  3. GitHub deletes old tags
  4. Actions can't be pinned

What does Renovate's minimumReleaseAge protect against?

  1. Old vulnerabilities
  2. Adopting a malicious or broken release before it is detected and pulled
  3. Large PRs
  4. Lockfile conflicts

Which Scorecard check reports workflows that run untrusted pull-request code with access to secrets?

  1. Pinned-Dependencies
  2. Dangerous-Workflow
  3. Maintained
  4. License