FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update get_user.yaml default parameter for token by dalarsen · Pull Request #55 · StackStorm-Exchange/stackstorm-github · GitHub

Repository navigation

Update get_user.yaml default parameter for token - #55

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

arm4b merged 1 commit into
StackStorm-Exchange:masterfrom
dalarsen:master

Conversation

dalarsen commented Sep 13, 2023 •
edited by arm4b
Loading

Copy link
Copy Markdown
Contributor

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

arm4b left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for the fix!

arm4b merged commit fc8e45b into StackStorm-Exchange:master Sep 15, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL