Skip to content

Update get_user.yaml default parameter for token#55

Merged
arm4b merged 1 commit into
StackStorm-Exchange:masterfrom
dalarsen:master
Sep 15, 2023
Merged

Update get_user.yaml default parameter for token#55
arm4b merged 1 commit into
StackStorm-Exchange:masterfrom
dalarsen:master

Conversation

@dalarsen
Copy link
Copy Markdown
Contributor

@dalarsen dalarsen commented Sep 13, 2023

Closes #54

When calling this action without a token_user and without an action_context.api_user, the default parameter specified is for some reason being evaluated into a string "None" instead of the None object.

This causes the code block for "if token_user:" here: https://github.com/dalarsen/stackstorm-github/blob/master/actions/get_user.py#L12 to be evaluated as True and causes it to run the _change_to_user_token method to be run when it aught not be (in my organization, it leads to an unauthenticated request and causes it to crash, though I imagine this wouldn't universally be the consequence of this).

Update CHANGES.md

Update CHANGES.md

Update pack.yaml pack version
Copy link
Copy Markdown
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@arm4b arm4b merged commit fc8e45b into StackStorm-Exchange:master Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default value for 'token_user' is being set to string containing 'None'

2 participants