Skip to content

Commit ec7642b

Browse files
committed
Update docs to use base_ref instead of head for actions/checkout
1 parent 3af4aad commit ec7642b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/codeowners.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- name: 'Checkout Code Repository'
2424
uses: actions/checkout@v5
2525
with:
26+
ref: ${{ github.base_ref }}
2627
fetch-depth: 0
2728

2829
- name: 'Update action.yml to build locally'

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
- name: 'Checkout Code Repository'
9090
uses: actions/checkout@v4
9191
with:
92+
ref: ${{ github.base_ref }} # use the base_ref to prevent bypass by PR author
9293
fetch-depth: 0
9394

9495
- name: 'Codeowners Plus'

0 commit comments

Comments
 (0)