Skip to content

Commit

Permalink
Use org-level GIT_TOKEN for brew tap update (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-farries authored Dec 8, 2023
1 parent 9efe215 commit e3faa35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ jobs:
version: latest
args: release --clean
env:
# We use two github tokens here:
# * The actions-bound `GITHUB_TOKEN` with permissions to write packages.
# * The org level `GIT_TOKEN` to be able to publish the brew tap file.
# See: https://goreleaser.com/errors/resource-not-accessible-by-integration/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_USERNAME: ${{ github.repository_owner }}
DOCKER_USERNAME: ghcr.io/${{ github.repository_owner }}
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ brews:
description: "Postgres zero-downtime migrations made easy"
license: "Apache-2.0"
repository:
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
owner: "{{ .Env.GITHUB_USERNAME }}"
name: homebrew-pgroll

Expand Down

0 comments on commit e3faa35

Please sign in to comment.