Skip to content

Conversation

MaciejG604
Copy link
Contributor

@MaciejG604 MaciejG604 commented Feb 20, 2023

If you follow the instruction for publishing from github actions,
when providing github token with this snippet:
scala-cli config github.token command:pbpaste --password-value
and then proceeding to:
scala-cli publish setup . --ci
one gets an error Error: java.lang.IllegalArgumentException: Illegal character(s) in message header value due to the value in config ending with '\n'.

Trimming the value obtained by calling a command fixes that.

@MaciejG604 MaciejG604 self-assigned this Feb 20, 2023
@MaciejG604 MaciejG604 added the bug Something isn't working label Feb 20, 2023
@MaciejG604 MaciejG604 force-pushed the trim-ending-new-line-from-command-results branch from 8a65e33 to 7d3720f Compare February 20, 2023 14:19
@MaciejG604 MaciejG604 changed the title Strip new line character from command result Trim passwords obrained as command result Feb 20, 2023
@MaciejG604 MaciejG604 changed the title Trim passwords obrained as command result Trim passwords obtained as command result Feb 20, 2023
@MaciejG604 MaciejG604 merged commit cf036de into VirtusLab:main Feb 21, 2023
@MaciejG604 MaciejG604 deleted the trim-ending-new-line-from-command-results branch February 21, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants