Skip to content

Commit

Permalink
added required approvals workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
self-maurya committed Nov 6, 2024
1 parent 520108e commit 220441d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/required_approvals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PR Approval Workflow
on:
pull_request:
branches:
- main
pull_request_review:
types: [submitted]

jobs:
check-approvals:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: read
steps:
- name: Check for required approvals
id: check-approvals
uses: skymoore/required-approvals@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
read_org_scoped_token: ${{ secrets.READ_ORG_SCOPED_TOKEN }}
org_name: openconfig
min_approvals: 2
approval_mode: ALL

0 comments on commit 220441d

Please sign in to comment.