Commit d1d3180
authored
Fix goreleaser failure: use github.token and add replace_existing_draft
The goreleaser workflow was failing with:
PATCH .../releases/343427697: 404 Not Found
Root cause: The GORELEASER_GITHUB_TOKEN lacks write permission to
update releases in auth0/auth0-cli (GitHub returns 404 instead of 403
for security). This manifests when a release is pre-created before
goreleaser runs.
Fix:
- Use github.token (has contents:write from workflow permissions) for
goreleaser's GITHUB_TOKEN so it always has permission to create and
update releases in auth0/auth0-cli
- Add release.replace_existing_draft: true to .goreleaser.yml to
handle stale draft releases from previous failed attempts
The downstream homebrew/scoop steps use explicit token: parameters
(not the GITHUB_TOKEN env var), so they are unaffected by this change.1 parent 4d9f0bd commit d1d3180
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments