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

Action doesn't fail on invalid credentials #922

Closed
2 of 5 tasks
neykov opened this issue Jan 25, 2023 · 4 comments
Closed
2 of 5 tasks

Action doesn't fail on invalid credentials #922

neykov opened this issue Jan 25, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@neykov
Copy link

neykov commented Jan 25, 2023

Description:
Upon configuring the action with invalid credentials it reports a successful completion even though it wasn't able to connect.

Starting the stale action process...
Error: Get issues for repo error: Bad credentials
No more issues found to process. Exiting...
Statistics:
Operations performed: 1

Action version:
6.0.1

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

  • Configure the action as usual
  • Provide invalid repo-token

Expected behavior:
The job should fail, along with the whole action execution.

Actual behavior:
The job successfully completes, even though it's not able to connect.

@neykov neykov added bug Something isn't working needs triage labels Jan 25, 2023
@dsame
Copy link
Contributor

dsame commented Jan 25, 2023

hello @neykov, thanks for your input. We started to investigate the issue

@dsame dsame self-assigned this Feb 2, 2023
@dsame dsame mentioned this issue Feb 10, 2023
2 tasks
@dsame
Copy link
Contributor

dsame commented Mar 20, 2023

The #935 merged into the main and will be included it next release.

@panticmilos
Copy link
Contributor

hi @neykov, we have released a new major version that is addressing this issue.

Could you confirm it is working as expected?

@neykov
Copy link
Author

neykov commented Mar 24, 2023

@panticmilos thanks for the fix. I tested it and it's failing as expected now. Here's the output:

Starting the stale action process...
Error: Error: Getting issues was blocked by the error: Bad credentials
Error: Getting issues was blocked by the error: Bad credentials

@neykov neykov closed this as completed Mar 24, 2023
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

No branches or pull requests

3 participants