test pr #1
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
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | |
name: PR Receive | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- ready_for_review | |
- synchronize | |
permissions: | |
contents: read | |
jobs: | |
pr-target: | |
runs-on: ubuntu-latest | |
# Ignore PRs with more than 10 commits. Pull requests with a lot of | |
# commits tend to be accidents usually when someone made a mistake while trying | |
# to rebase. We want to ignore these pull requests to avoid excessive | |
# notifications. | |
if: github.repository == 'llvm/llvm-project' && | |
github.event.pull_request.draft == false && | |
github.event.pull_request.commits < 10 | |
steps: | |
- name: Store PR Information | |
run: | | |
mkdir -p ./pr | |
echo ${{ github.event.number }} > ./pr/NR | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: pr | |
path: pr/ |