Skip to content

chore: harden Dependabot auto-merge - #155

Merged
sadjow merged 1 commit into
mainfrom
chore/harden-dependabot-auto-merge
Aug 12, 2026
Merged

chore: harden Dependabot auto-merge#155
sadjow merged 1 commit into
mainfrom
chore/harden-dependabot-auto-merge

Conversation

@sadjow

@sadjow sadjow commented Aug 12, 2026

Copy link
Copy Markdown
Member

Summary

  • run privileged Dependabot metadata automation from the trusted default-branch workflow with pull_request_target
  • update the pinned dependabot/fetch-metadata action from v2.3.0 to v3.1.0
  • retain the Dependabot author and repository guards

Context

The review of #148 raised a concern about write permissions on Dependabot-triggered workflows. The existing workflow has operated successfully because this repository allows workflows to request write permissions: its logs show both approval and auto-merge succeeding for eligible updates.

This follow-up adopts the safer trusted-base event recommended for metadata-only automation. The workflow does not check out, download, or execute pull request code. It also moves the metadata action to its Node 24 runtime and removes the current Node 20 deprecation warning.

The repository guard remains intentional so a fork or copied workflow does not inherit privileged auto-merge behavior.

Validation

  • actionlint .github/workflows/dependabot-auto-merge.yml
  • Prettier check for the changed workflow
  • verified that the pinned SHA is the signed v3.1.0 commit
  • verified that v3.1.0 declares the Node 24 Actions runtime

References

@sadjow
sadjow merged commit 2d13246 into main Aug 12, 2026
2 checks passed
@sadjow
sadjow deleted the chore/harden-dependabot-auto-merge branch August 12, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant