Skip to content

test: caller-contract guard test for deps-automerge delegation #399

Backlog

Description

@jflowers

The deps-automerge workflow delegation has no caller-contract guard test (LOW finding from PR #389 review).

Finding: The repo's established practice guards every workflow delegation with a static caller test (release_workflow_test.go, ci_workflow_test.go) — those tests catch pin, permission, and input drift. The deps-automerge delegation's reusable-workflow reference, pin format, and job-level permission grants are unguarded, so an accidental hand-edit (wrong ref, non-SHA pin, dropped pull-requests: write) surfaces only on the next Dependabot PR. There is also no in-repo evidence (canary, dry-run, or prior run) that the callee merges successfully under Dependabot-triggered pull_request runs, where GITHUB_TOKEN is read-only by default; that behavior lives entirely in the callee.

Severity: LOW
File: .github/workflows/dependabot-automerge.yml:14
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