audk/.github
Michael Kubacki 0343e75233 .github/request-reviews.yml: Switch to pull_request_target
This change simply moves the trigger to `pull_request_target`. The
rest of this message contains verbose details related to that.

`pull_request_target` is used instead of `pull_request` since the
default GitHub token cannot pick up write permissions with the
`pull_request` type on PRs from public forks. Write permission is
needed to add reviewrs. This was previously tested on an edk2 fork
where PRs were not from other public forks into the fork being used
for testing but directly on the fork itself.

Because `pull_request_target` runs the pull request in the context
of the base branch (not the PR branch) some logic needs slightly
modified. The main change is that the GitHub context will no longer
give the PR branch HEAD as the PR commit SHA (i.e.
`github.event.pull_request.head.sha`). The SHA will be the base
branch (`master`) SHA as that is what is checked out for the
workflow run. SO, the actual PR SHA is now fetched separately.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2024-07-27 05:59:14 +00:00
..
ISSUE_TEMPLATE .github/ISSUE_TEMPLATE/config.yml: Add initial issue template 2022-11-29 23:02:56 +00:00
scripts .github/request-reviews.yml: Switch to pull_request_target 2024-07-27 05:59:14 +00:00
workflows .github/request-reviews.yml: Switch to pull_request_target 2024-07-27 05:59:14 +00:00
dependabot.yml .github/dependabot.yml: Disable automatic rebasing 2023-04-02 02:26:01 +00:00
pull_request_template.md .github: Update pull_request_template.md 2024-07-10 16:02:43 +00:00