Skip to content

ci: filter, bound, and concurrency-harden dependabot-automerge job #398

Backlog

Description

@jflowers

The dependabot-automerge job starts write-scoped on every PR and has no runner bounds (LOW finding from PR #389 review).

Finding: on: pull_request is unfiltered, so every PR — human or fork — starts this job with a write-scoped token (contents: write, pull-requests: write); only the callee's internal actor check skips non-Dependabot runs (CI-020 least privilege). The workflow also omits a concurrency group (CI-012 SHOULD) and timeout-minutes, so a hung reusable-workflow call runs to the 6-hour default. post-release-install-check.yml sets both.

Fix: job-level if: github.actor == 'dependabot[bot]', a concurrency group, and timeout-minutes.

Severity: LOW
File: .github/workflows/dependabot-automerge.yml:8
Review comment: #389 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions