mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-17 04:36:05 +00:00
fix: use env var for PR number in shell script; add changelog
Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com>
This commit is contained in:
co-authored by
kaovilai
parent
73d079d93d
commit
c55559f54d
@@ -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