From c816c733414f05c7ac6cc8c1744d84794e9cb305 Mon Sep 17 00:00:00 2001 From: William Murphy Date: Thu, 18 Jan 2024 08:35:23 -0500 Subject: [PATCH] chore: enable automatic approval of dependabot PRs (#2505) 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 --- .github/workflows/dependabot-automation.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/dependabot-automation.yaml diff --git a/.github/workflows/dependabot-automation.yaml b/.github/workflows/dependabot-automation.yaml new file mode 100644 index 000000000..1c3ded297 --- /dev/null +++ b/.github/workflows/dependabot-automation.yaml @@ -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