From d9374992c0a5aaf4ba668b733a30325a2b30e4a4 Mon Sep 17 00:00:00 2001 From: Muhammad Talal Anwar Date: Wed, 4 Oct 2023 11:01:35 +0200 Subject: [PATCH] GoReleaser: use `write` scope for contents this is needed to update the Homebrew formula in the repo itself. --- internal/ghworkflow/workflow_release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ghworkflow/workflow_release.go b/internal/ghworkflow/workflow_release.go index c299878..535556a 100644 --- a/internal/ghworkflow/workflow_release.go +++ b/internal/ghworkflow/workflow_release.go @@ -23,7 +23,7 @@ func releaseWorkflow(cfg *core.GithubWorkflowConfiguration) { return } - w.Permissions.Contents = tokenScopeRead + w.Permissions.Contents = tokenScopeWrite w.Permissions.Packages = tokenScopeWrite w.On.Push.Branches = nil