Skip to content

Adding permissions

Adding permissions #46

Workflow file for this run

name: Automatically Create PR on New Branches
concurrency: auto-pr-${{ github.ref }}
on:
push:
branches-ignore:
- "main"
- "dependabot/**"
- "renovate/**"
- "whitesource/**"
permissions:
contents: read
pull-requests: write
# shouldn't need more...
actions: read
attestations: read
checks: read
deployments: read
id-token: write
issues: read
discussions: read
packages: read
pages: read
repository-projects: read
security-events: read
statuses: read
jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: gh pr view || gh pr create -d -B "main" -t "${{ github.ref_name }}" -b ""
env:
GH_TOKEN: ${{ github.token }}