Skip to content

Bump github.com/open-policy-agent/opa from 0.56.0 to 0.57.0 #61

Bump github.com/open-policy-agent/opa from 0.56.0 to 0.57.0

Bump github.com/open-policy-agent/opa from 0.56.0 to 0.57.0 #61

---
name: Enable auto-merge
"on":
# The pull_request event always runs with read-only permission, see:
# https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
# However, this workflow needs write permisson so it can set the auto-merge flag on the PR.
# For this reason, the pull_request_target event is used which causes the worfklow to be
# run with read and write access.
# IMPORTANT: This workflow should never clone, build, etc, based on user provided input, see:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
pull_request_target:
types:
- opened
- reopened
branches:
- main
permissions:
contents: read
jobs:
enable-auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'rh-tap-build-team[bot]'
permissions:
contents: write
steps:
- uses: alexwilson/enable-github-automerge-action@921f5ffc3ffdf4b9590491d6e6c8307712e64047 # main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}