From 2779b8ea7f7845513b16de1205f591aa01cad8fc Mon Sep 17 00:00:00 2001 From: Jameel Kaisar <65322473+JameelKaisar@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:13:59 +0000 Subject: [PATCH] Add missing permissions to actions publish This commit adds the missing permissions to the actions publish script. The 'contents: write' permission is required to publish releases and the 'pull-requests: write' permission is required to close the pull request after the changes are committed. --- Library/Homebrew/dev-cmd/tap-new.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Library/Homebrew/dev-cmd/tap-new.rb b/Library/Homebrew/dev-cmd/tap-new.rb index aeddb9a3e7..9e497efe8f 100644 --- a/Library/Homebrew/dev-cmd/tap-new.rb +++ b/Library/Homebrew/dev-cmd/tap-new.rb @@ -141,14 +141,6 @@ module Homebrew env: BRANCH: ${{ github.event.pull_request.head.ref }} run: git push --delete origin $BRANCH - - - name: Close pr - if: github.event.pull_request.head.repo.fork == false - env: - GITHUB_TOKEN: ${{ github.token }} - PULL_REQUEST: ${{ github.event.pull_request.number }} - REPO: ${{ github.repository }} - run: gh pr close $PULL_REQUEST --repo $REPO YAML (tap.path/".github/workflows").mkpath