-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement sensitive workflows for PRs
- Loading branch information
1 parent
cbd20b7
commit 00aad63
Showing
2 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Trigger PR sensitive workflows | ||
|
||
on: pull_request # Require approval | ||
# IMPORTANT: Change settings in Actions/General to "Require approval for all outside collaborators". | ||
# Before approving workflow from public forks, triple check the code. | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pr-sha: | ||
name: Get pull request SHA | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Save pull request HEAD SHA | ||
run: echo ${{ github.event.pull_request.head.sha }} > pr.txt | ||
|
||
- name: Upload pull request HEAD SHA | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pr-sha | ||
path: pr.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters