[GHSA-7p5p-7qq5-cc86] An issue was discovered in pip (all versions) because it... #2505
Workflow file for this run
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
name: Delete PR staging and head branches | |
on: | |
pull_request_target: | |
branches: ["*/advisory-improvement-*"] | |
types: [closed] | |
paths: | |
- "advisories/**" | |
workflow_dispatch: | |
jobs: | |
delete-staging-and-head-branches: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Delete staging and head branches | |
env: | |
STAGING_BRANCH: ${{ github.event.pull_request.base.ref }} | |
HEAD_BRANCH: ${{ github.event.pull_request.head.ref }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -xeo pipefail | |
git push origin --delete --force $STAGING_BRANCH | |
git push origin --delete --force $HEAD_BRANCH |