Skip to content

Comments

fix: header must be a string, not array#953

Open
candrews wants to merge 1 commit intosemantic-release:masterfrom
candrews:header-string
Open

fix: header must be a string, not array#953
candrews wants to merge 1 commit intosemantic-release:masterfrom
candrews:header-string

Conversation

@candrews
Copy link

@candrews candrews commented Feb 23, 2026

The header must be a string, not an array. Per the got documentation, headers is of type object<string, string>. See https://github.com/sindresorhus/got/blob/v14.6.6/documentation/2-options.md#headers

This PR fixes the mis-typing problem introduced in #919 which appears to cause GitLab releases to fail with incorrect EINVALIDGLTOKEN Invalid GitLab token. errors.

@arvest-bjoneson @fgreinacher

@fgreinacher
Copy link
Contributor

fgreinacher commented Feb 23, 2026

@candrews The diff looks off. Please double check and ping me when ready for review.

The header must be a string, not an array. Per the got documentation, `headers` is of type `object<string, string>`. See https://github.com/sindresorhus/got/blob/v14.6.6/documentation/2-options.md#headers

Fixes the mis-typing problem introduced in semantic-release#919 which appears to cause GitLab releases to fail with incorrect `EINVALIDGLTOKEN Invalid GitLab token.` errors
@candrews
Copy link
Author

candrews commented Feb 23, 2026

@candrews The diff looks off. Please double check and ping me when ready for review.

It's fixed. All tests pass, lint reports success as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants