vouch-check-pr.yml 993 B

1234567891011121314151617181920212223242526272829303132
  1. # vouch (https://github.com/mitchellh/vouch)
  2. name: Vouch - Check PR
  3. on:
  4. pull_request_target:
  5. types: [opened, reopened]
  6. permissions:
  7. contents: read
  8. pull-requests: write
  9. jobs:
  10. check:
  11. if: github.repository == 'netbox-community/netbox'
  12. runs-on: ubuntu-latest
  13. steps:
  14. # Check out the base branch (never the PR head) to read the response template
  15. - name: Check out repo
  16. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
  17. with:
  18. persist-credentials: false
  19. sparse-checkout: .github/vouch-pr-unvouched-message
  20. sparse-checkout-cone-mode: false
  21. - name: Check PR author
  22. uses: mitchellh/vouch/action/check-pr@d66fa29a64600490892131ad87597c30c91fcac4 # v1.5.0
  23. with:
  24. pr-number: ${{ github.event.pull_request.number }}
  25. auto-close: true
  26. template-file: .github/vouch-pr-unvouched-message
  27. env:
  28. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}