-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signed Commits for Brews:
#242
Comments
I have tried already and the goreleaser-action doesn't seem to pick it up. Here is the portion of my yaml file:
Here is the goreleaser config:
However, I'm getting this error:
The token I'm providing for the |
Just found the following: https://github.com/goreleaser/goreleaser/blob/acfd0024fa74c29d2a7d55f730927228947ac144/internal/pipe/brew/brew.go#L111 I'll try specifying proper name and email so that it doesn't default to goreleaser name and email. Stand by... |
That didn't work. Looking further through the code it looks like under the hood this is the code that is being run: https://github.com/goreleaser/goreleaser/blob/01fd3e8c7b3b16e77996b0434fc49f62a033f775/internal/client/github.go#L28 It is using the api, not the local git client... which means the import gpg action will not apply here. I'm not even sure if signed commits are possible through the github api. Thoughts...? |
Opened a ticket against goreleaser as it will require a change there: |
This will require a significant change to goreleaser/goreleaser to work. I opened issue goreleaser/goreleaser#1774 In the meantime I have a working workaround. In goreleaser.yaml I
This did require me adding a feature to https://github.com/crazy-max/ghaction-import-gpg to run in a different working directory. The pull request is currently open here: crazy-max/ghaction-import-gpg#55 I believe this issue can be closed now. |
LGTM thanks |
I'm using goreleaser-action and it is amazing! We recently started using the Brews feature and are hoping to implement the scoop feature as well. The one issue I have run into is that our organization requires signed commits for all default branches. I see documentation on signing... but it seems like that is more like signing compiled bins. I have been trying to figure out how to use https://github.com/crazy-max/ghaction-import-gpg in conjunction with a service account access token to get the
Brews:
option to sign the commit when updating the formula. So far I have been unsuccessful. Is this even possible? If so, can documentation be provided for signed commits in github actions?++@venkatkotta since you are dealing with this as well.
The text was updated successfully, but these errors were encountered: