automated-pr-approve #6355
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: automated-pr-approve | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/45 * * * *' | |
permissions: | |
contents: read | |
jobs: | |
review-pr: | |
runs-on: ubuntu-latest | |
if: github.repository == 'wolfi-dev/os' | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Check out repository code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- run: | | |
./scripts/auto-approve-pr.sh ${{ github.repository }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |