From 5d65063987fdc529c2bea83f64e950352d88810c Mon Sep 17 00:00:00 2001 From: Marco de Abreu Date: Wed, 16 Apr 2025 03:01:40 +0200 Subject: [PATCH] GitHub Actions: Explicitly pass github username and commit sha (#104079) Explicitly pass github username and commit sha Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com> --- .github/workflows/pr-patch-check-event.yml | 4 +++- .github/workflows/sync-mirror-event.yml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-patch-check-event.yml b/.github/workflows/pr-patch-check-event.yml index 1abf2452476..a081ca2a2e0 100644 --- a/.github/workflows/pr-patch-check-event.yml +++ b/.github/workflows/pr-patch-check-event.yml @@ -40,7 +40,9 @@ jobs: inputs: { src_repo: "${{ github.repository }}", src_ref: "${{ github.head_ref }}", + src_sha: "${{ github.sha }}", patch_repo: "${{ github.repository }}-security-patches", - patch_ref: "${{ github.base_ref }}" + patch_ref: "${{ github.base_ref }}", + triggering_github_handle: "${{ github.event.sender.login }}" } }) diff --git a/.github/workflows/sync-mirror-event.yml b/.github/workflows/sync-mirror-event.yml index e2a44b21322..b1a1466fdf9 100644 --- a/.github/workflows/sync-mirror-event.yml +++ b/.github/workflows/sync-mirror-event.yml @@ -34,8 +34,9 @@ jobs: workflow_id: 'mirror-branch-and-apply-patches-event.yml', ref: 'main', inputs: { - ref: "${{ github.ref_name }}", + src_ref: "${{ github.ref_name }}", src_repo: "${{ github.repository }}", + src_sha: "${{ github.sha }}", dest_repo: "${{ github.repository }}-security-mirror", patch_repo: "${{ github.repository }}-security-patches" }