Skip to content

automated-pr-review #1557

automated-pr-review

automated-pr-review #1557

name: automated-pr-review
on:
workflow_dispatch:
schedule:
- cron: '42 * * * *'
permissions:
contents: read
jobs:
enable-auto-merge:
runs-on: ubuntu-latest
if: github.repository == 'wolfi-dev/advisories'
permissions:
contents: read
id-token: write # needed for Octo STS federation
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: Check out repository code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
id: octo-sts
with:
scope: wolfi-dev/advisories
identity: enable-auto-merge
- run: |
./scripts/enable-auto-merge.sh ${{ github.repository }}
env:
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
review-pr:
runs-on: ubuntu-latest
if: github.repository == 'wolfi-dev/advisories'
needs: enable-auto-merge
permissions:
contents: read
pull-requests: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: Check out repository code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- run: |
./scripts/review-prs.sh ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}