Adding GHA permission for GitHub Packages

When a tap stores bottles in GitHub Packages, then the publish workflow requires the corresponding write permission.
This commit is contained in:
David C Hall 2023-10-11 19:31:54 -07:00 committed by GitHub
parent eacf8d96d6
commit 8e65816335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,7 @@ module Homebrew
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
permissions: permissions:
contents: write contents: write
packages: #{args.github_packages ? "write" : "none"}
pull-requests: write pull-requests: write
steps: steps:
- name: Set up Homebrew - name: Set up Homebrew