Goreleaser: howbrew-tap doesn't work with github actions

Created on 14 Mar 2019  路  5Comments  路  Source: goreleaser/goreleaser

Describe the bug

Using github actions, you cannot publish to homebrew-tap as the tap is another repository and the scope of the GITHUB_TOKEN within actions allows only to write to current repo.

To Reproduce

Try publishing to a homebrew-tap within github actions.

Expected behavior

Tap published

Additional context

I wonder if it's possible wihtin another action to only publish the tap with previous latest release and another GITHUB_TOKEN.

bug

Most helpful comment

You can add the GITHUB_TOKEN secret, but you cannot configure its value. You cannot create a custom secret named GITHUB_TOKEN.
It seems overriding an already specified GITHUB_TOKEN with GORELEASER_GITHUB_TOKEN is the way to go !

All 5 comments

have you tried adding a custom GITHUB_TOKEN secret?

if that doesn't work, maybe we can change goreleaser to preffer GORELEASER_GITHUB_TOKEN or something like that (maybe even on the entrypoint only)...

You can add the GITHUB_TOKEN secret, but you cannot configure its value. You cannot create a custom secret named GITHUB_TOKEN.
It seems overriding an already specified GITHUB_TOKEN with GORELEASER_GITHUB_TOKEN is the way to go !

awesome, thanks @smaftoul .

fixed on #983

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

angelbarrera92 picture angelbarrera92  路  3Comments

michelvocks picture michelvocks  路  3Comments

LarsOL picture LarsOL  路  4Comments

novusopt picture novusopt  路  5Comments

avenda picture avenda  路  3Comments