mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-25 09:24:16 +00:00
fix: use env var for PR number in shell script; add changelog
Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com> Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
This commit is contained in:
committed by
Tiger Kaovilai
co-authored by
kaovilai
parent
e9e0926d17
commit
b85fd7b2ee
@@ -41,10 +41,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Save PR number to artifact
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
run: |
|
||||
mkdir -p /tmp/pr
|
||||
# Write only the numeric PR number; the privileged workflow validates this.
|
||||
printf '%s' '${{ github.event.pull_request.number }}' > /tmp/pr/number
|
||||
printf '%s' "${PR_NUMBER}" > /tmp/pr/number
|
||||
- name: Upload PR number artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Fix GitHub Actions workflow to re-request maintainer review for fork-originated pull requests using a privilege-separated workflow_run design
|
||||
Reference in New Issue
Block a user