Unverified Commit 69215f1c authored by daz's avatar daz
Browse files

Restrict permissions for combine-prs job

parent aef30aae
Loading
Loading
Loading
Loading
+6 −5
Changes for .github/workflows/ci-combine-bot-prs.yml: 6 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -3,14 +3,15 @@ name: Combine Bot PRs
on:
  workflow_dispatch:

# The minimum permissions required to run this Action
permissions:
  contents: write
  pull-requests: write
  checks: read
  contents: read

jobs:
  combine-wrapperbot-prs:
    permissions:
      contents: write
      pull-requests: write
      checks: read
    if: github.repository == 'gradle/actions'
    runs-on: ubuntu-latest
    steps:
@@ -18,6 +19,6 @@ jobs:
        uses: github/[email protected]
        with:
          branch_prefix: wrapperbot
          combine_branch_name: wrapperbot/combined-wrapper-updates
          pr_title: 'Bump Gradle Wrappers'
          ci_required: "false"
          github_token: ${{ secrets.BOT_GITHUB_TOKEN }}