Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return error when login fails #1062

Merged
merged 3 commits into from
Jan 9, 2024
Merged

return error when login fails #1062

merged 3 commits into from
Jan 9, 2024

Conversation

tgummerer
Copy link
Contributor

Currently if the login fails as part of the GitHub action, we just silently ignore that. This can be very confusing when steps further down the line fail, e.g. with "error: PULUMI_ACCESS_TOKEN must be set for login during non-interactive CLI sessions", even though the user has set the access token.

Instead of just continuing our merry way when the login fails, fail the action and let the user know.

This might be the cause of #1014. The symptoms match, though it's unclear if there is anything else going on in that issue.

/cc @hisuwh

Currently if the login fails as part of the GitHub action, we just
silently ignore that.  This can be very confusing when steps further
down the line fail, e.g. with "error: PULUMI_ACCESS_TOKEN must be set
for login during non-interactive CLI sessions", even thoug the user
has set the access token.

Instead of just continuing our merry way when the login fails, fail
the action and let the user know.
@tgummerer tgummerer requested a review from a team January 8, 2024 23:52

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link

@Zaid-Ajaj Zaid-Ajaj left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

2 participants