Skip to content

Commit

Permalink
ci: add workflow to restrict direct PRs to release branches (#8240)
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 authored Jan 14, 2025
1 parent ae28398 commit 011012a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release-pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Backport PR Check

on:
pull_request:
branches:
- 'release/v*'

jobs:
check-pr-author:
runs-on: ubuntu-latest
steps:
- name: Check PR author
id: check_author
run: |
if [ "${{ github.actor }}" != "aqua-bot" ]; then
echo "::error::This branch is intended for automated backporting by bot. Please refer to the documentation:"
echo "::error::https://trivy.dev/latest/community/maintainer/backporting/"
exit 1
fi

0 comments on commit 011012a

Please sign in to comment.