[GHSA-85x2-r8xv-ww8c] Kirby CMS's pages.access/list and files.access/list permissions are not consistently checked in the Panel and REST API
#6583
Workflow file for this run
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: Delete PR staging and head branches | |
| on: | |
| pull_request_target: | |
| branches: ["*/advisory-improvement-*"] | |
| types: [closed] | |
| paths: | |
| - "advisories/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write # Required to delete branches | |
| jobs: | |
| delete-staging-and-head-branches: | |
| if: ${{ !github.event.pull_request.head.repo.fork }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - 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 |