Skip to content

Commit

Permalink
chore: enable automatic approval of dependabot PRs (#36)
Browse files Browse the repository at this point in the history
To reduce toil in this repo, enable dependabot PRs to be automatically
approved, but not merged. They are not automatically merged because if
the default GitHub token is used to automatically merge a PR, the
resulting commit will not trigger workflows on main. Rather than
generate a more potent token, just automatically review them, which
reduces toil by eliminating several clicks and page loads for
maintainers who are trying to merge dependabot PRs.

Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode authored Jan 18, 2024
1 parent 89e2fe8 commit a5e93b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/dependabot-automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Dependabot Automation
on:
pull_request:

permissions:
pull-requests: write

jobs:
run:
uses: anchore/workflows/.github/workflows/dependabot-automation.yaml@main

0 comments on commit a5e93b6

Please sign in to comment.