[GHSA-4px2-pw77-vc85] SwiftNIO HTTP/2: HTTP/2-to-HTTP/1 Request Smuggling via unvalidated :path pseudo-header in HTTP2ToHTTP1Codec #7930
This file contains hidden or 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
| name: Create PR staging branch | |
| on: | |
| pull_request_target: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, edited] | |
| paths: | |
| - "advisories/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write # Required to create and push branches | |
| pull-requests: write # Required to edit PR base branch | |
| jobs: | |
| ensure-base-is-staging: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: ensure base is staging | |
| env: | |
| PR_AUTHOR: ${{ github.event.pull_request.user.login }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| set -xeo pipefail | |
| BRANCH_NAME="$PR_AUTHOR"/advisory-improvement-"$PR_NUMBER" | |
| git checkout -b "$BRANCH_NAME" | |
| git push origin "$BRANCH_NAME" | |
| gh pr edit --repo ${{ github.repository }} $PR_NUMBER --base "$BRANCH_NAME" |