Skip to content

Commit 011012a

Browse files
authored
ci: add workflow to restrict direct PRs to release branches (#8240)
1 parent ae28398 commit 011012a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Backport PR Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'release/v*'
7+
8+
jobs:
9+
check-pr-author:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check PR author
13+
id: check_author
14+
run: |
15+
if [ "${{ github.actor }}" != "aqua-bot" ]; then
16+
echo "::error::This branch is intended for automated backporting by bot. Please refer to the documentation:"
17+
echo "::error::https://trivy.dev/latest/community/maintainer/backporting/"
18+
exit 1
19+
fi

0 commit comments

Comments
 (0)