Skip to content

Commit 01076a3

Browse files
committed
Fix crd-size-badge checkout for pull_request_target
actions/checkout v7 now blocks fork PR checkout in pull_request_target workflows by default. This workflow only measures CRD file size and posts a comment, so allow-unsafe-pr-checkout is safe here.
1 parent bf95d87 commit 01076a3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/crd-size-badge.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2222
with:
2323
ref: ${{ github.event.pull_request.head.sha || github.sha }}
24+
allow-unsafe-pr-checkout: true
2425

2526
- name: Install yq
2627
uses: mikefarah/yq@1b9b4ac5187171d2e5e3129be0cfa827c7f9d53d # v4

0 commit comments

Comments
 (0)