Skip to content

MAINT-SW-002 — Add a least-privilege Dependabot PR Guard path #405

Open

Description

@dDevAhmed

Ownership

Maintainer-owned automation task. This is not a Drips/Stellar Wave contributor issue.

  • No points.
  • Do not add wave-candidate or Stellar Wave.
  • Do not enable auto-merge or broaden workflow token permissions.
  • Preserve CODEOWNERS and branch-ruleset enforcement.

Problem

The current .github/workflows/wave-pr-guard.yml requires every non-trusted PR author to link exactly one open Stellar Wave issue, have a Drips assignment, and satisfy contributor-specific PR-body requirements. Dependabot PRs cannot satisfy that workflow, so otherwise useful dependency and GitHub Actions update PRs fail the Contributor PR Guard.

Recent examples:

Scope

Implement a narrow, explicit exception for dependabot[bot] that does not weaken contributor or protected-surface policy.

  1. Recognize only the exact Dependabot bot account; do not generalize to arbitrary bots or untrusted users.
  2. Allow only clearly classified dependency-update PRs:
    • npm dependency updates limited to package.json and package-lock.json;
    • GitHub Actions updates limited to approved .github/workflows/** action-reference changes.
  3. Reject unrelated source, application, migration, generated-artifact, release-secret, or policy changes in bot PRs.
  4. Preserve open-PR overlap detection and ensure bot PRs cannot overlap conflicting protected work unnoticed.
  5. Do not require Drips issue assignment or a Stellar Wave closing reference for the narrowly permitted bot path.
  6. Preserve required CI, CodeQL, Dependency Review, E2E, and exact-head checks.
  7. Preserve CODEOWNERS review and branch-ruleset enforcement for package, lockfile, and workflow paths.
  8. Keep pull_request read-only; do not use pull_request_target, write credentials, auto-merge, or bypass required checks.
  9. Add deterministic tests or a maintainable testable helper for allowed/denied bot path combinations.

Acceptance Criteria

  • A Dependabot npm update limited to package files passes the contributor-specific guard while still requiring all normal checks and owner review.
  • A Dependabot workflow update limited to approved action references passes the contributor-specific guard while still requiring exact-head owner review.
  • Dependabot PRs changing application source, migrations, secrets, release workflows beyond approved action pins, or unrelated files fail closed.
  • Ordinary contributors still require one valid open Stellar Wave issue, accepted assignment, dependency completion, and required PR sections.
  • No write permissions or auto-merge capabilities are added to the guard.
  • actionlint and the complete required CI pass on the exact PR head.

Evidence

Non-goals

  • Activating Stellar Wave issues or assigning Drips points.
  • Changing contributor eligibility or issue-intake limits.
  • Enabling automatic merging or changing branch-protection bypass rights.

Activity

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions