Skip to content

Commit f6b6af7

Browse files
[GHA] Permit rebuild from forks (#4808)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
1 parent bc62a20 commit f6b6af7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/rebuild.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
name: Rebuild PR
1313

1414
on:
15-
pull_request:
15+
pull_request_target:
1616
types: [labeled]
1717
workflow_dispatch:
1818
inputs:
@@ -52,12 +52,15 @@ jobs:
5252
- name: Checkout
5353
if: ${{ github.head_ref == '' && env.LABEL == 'rebuild' }}
5454
uses: actions/checkout@v4
55+
with:
56+
persist-credentials: false
5557

5658
- name: Checkout merge
5759
if: ${{ github.head_ref != '' && env.LABEL == 'rebuild' }}
5860
uses: actions/checkout@v4
5961
with:
6062
ref: refs/pull/${{github.event.pull_request.number}}/merge
63+
persist-credentials: false
6164

6265
- name: List Jobs
6366
if: ${{ env.LABEL == 'rebuild' }}

0 commit comments

Comments
 (0)