From 1add08e037b89f5c74abc8310150829431a1617f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Z=CC=8Calinauskas?= Date: Tue, 6 Feb 2024 18:29:53 +0200 Subject: [PATCH] Use Github PAT for Homebrew tap integration only. --- .github/workflows/release.yml | 3 ++- .goreleaser.yml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86bf2fc..68d2e3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,5 @@ jobs: args: release --clean env: # https://goreleaser.com/errors/resource-not-accessible-by-integration/ - GITHUB_TOKEN: ${{ secrets.GH_PAT }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAP_TOKEN: ${{ secrets.TAP_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index af287e2..0abac7f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -48,4 +48,6 @@ brews: commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" repository: owner: cherryservers - name: homebrew-cherryctl \ No newline at end of file + name: homebrew-cherryctl + # https://goreleaser.com/errors/resource-not-accessible-by-integration/ + token: "{{ .Env.TAP_TOKEN }}" \ No newline at end of file