Skip to content

Commit

Permalink
adds gh token permissions and improves warning comment
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan authored Mar 12, 2024
1 parent 5a9efec commit 5b7cd39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/dependabot_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: "Dependabot Auto Approve and Merge"
on:
pull_request:

permissions:
pull-requests: write

jobs:
auto-merge:
runs-on: ubuntu-latest
Expand All @@ -14,7 +17,7 @@ jobs:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# This step will allow Github to auto-merge the PR if branch protection rules are satisfied.
# Branch protection rules should require status checks to pass before merging.
# Branch protection rules should require status checks to pass before merging including all required workflows.
- name: Enable auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
Expand Down

0 comments on commit 5b7cd39

Please sign in to comment.