Do not populate GITHUB_TOKEN automatically #75
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#75
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want to release to Gitea packages. If I add
GITEA_TOKEN
to workflow file, goreleaser says, that multiple tokens are found and that it is not allowed. I even tried to setGITHUB_TOKEN
to nothing. Sadly this doesn't work as well as this doesn't unset the env var.Goreleaser error
could you try the above? It's what I am using for goreleaser
Sadly, this didn't work. I added this to the end of my
.goreleaser.yml
. Same error:I've also experience this issue.
I've been unable to unset the token like tried above and as it's done in the gitea/tea project.
The
env_files
are only used when the token isn't found so it's of no help in this case.GoReleaser uses the tokens to figure out what service to use and errors if more then one token is available.
So either a way to unset the token would be needed or for GoReleaser to add a way to force a specific service.
Currently there is a PR to add a way to force GoReleaser to use gitea in the works: https://github.com/goreleaser/goreleaser/pull/3910
This came from the following discussion: https://github.com/orgs/goreleaser/discussions/3900
This has been resolved with the release of GoReleaser v1.17.
By adding the
GORELEASER_FORCE_TOKEN
it builds and publishes without any problem.This is my action for reference:
As a quick follow-up, I've also created https://github.com/goreleaser/goreleaser/pull/3936