Skip to content

Commit

Permalink
Add dependabot auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhammerl committed Mar 15, 2024
1 parent b428c4c commit 2896fa0
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 1 deletion.
77 changes: 77 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/steps/gather"
schedule:
interval: "weekly"
day: "sunday"
time: "00:00"
groups:
updates:
patterns:
- "*"
rebase-strategy: "auto"
labels:
- "security"
- "dependencies"

- package-ecosystem: "pip"
directory: "/steps/invalidate"
schedule:
interval: "weekly"
day: "sunday"
time: "00:00"
groups:
updates:
patterns:
- "*"
rebase-strategy: "auto"
labels:
- "security"
- "dependencies"

- package-ecosystem: "pip"
directory: "/steps/list"
schedule:
interval: "weekly"
day: "sunday"
time: "00:00"
groups:
updates:
patterns:
- "*"
rebase-strategy: "auto"
labels:
- "security"
- "dependencies"

- package-ecosystem: "pip"
directory: "/steps/transform"
schedule:
interval: "weekly"
day: "sunday"
time: "00:00"
groups:
updates:
patterns:
- "*"
rebase-strategy: "auto"
labels:
- "security"
- "dependencies"

- package-ecosystem: "pip"
directory: "/edge/cloudfront"
schedule:
interval: "weekly"
day: "sunday"
time: "00:00"
groups:
updates:
patterns:
- "*"
rebase-strategy: "auto"
labels:
- "security"
- "dependencies"

22 changes: 22 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot auto-merge
on: pull_request_target

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Run pipeline
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/felixhammerl/infrastructure-scanner/actions/workflows/pipeline.yml/dispatches \
-d '{"ref":"main"}'
4 changes: 3 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Pipeline
on: push
on:
push:
workflow_dispatch:

env:
AWS_REGION: us-east-1
Expand Down

0 comments on commit 2896fa0

Please sign in to comment.