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 reports success even if the domain could not be checked #24

Closed
iamsilvio opened this issue May 6, 2021 · 5 comments
Closed

Action reports success even if the domain could not be checked #24

iamsilvio opened this issue May 6, 2021 · 5 comments
Assignees
Labels
bugfix Something is broke but not on fire.

Comments

@iamsilvio
Copy link

iamsilvio commented May 6, 2021

Description

Action reports success even if the domain could not be checked!
Action output see repro ->

Reproduction

Run bluenovaio/action-tls-monitor@main
  with:
    domain: deleteonerror.com
    expiration_days: 30
    approved_protocols: TLSv1.3
(node:2076) UnhandledPromiseRejectionWarning: Error: write EPROTO 139733454043008:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 70

    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:87:16)
(node:2076) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2076) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Environment

 Current runner version: '2.278.0'
Operating System
  Ubuntu
  20.04.2
  LTS
Virtual Environment
  Environment: ubuntu-20.04
  Version: 20210504.1

Screenshot 2021-05-06 170328

@iamsilvio iamsilvio added the bugfix Something is broke but not on fire. label May 6, 2021
@zrosenbauer zrosenbauer self-assigned this May 6, 2021
@zrosenbauer
Copy link
Owner

@iamsilvio just to verify you are using the Slack Webhook? This Action DOES NOT error but returns the output with an error_message so you can send to PagerDuty, OpsGenie or other services if you'd like.

zrosenbauer added a commit that referenced this issue May 6, 2021
zrosenbauer pushed a commit that referenced this issue May 6, 2021
* fix issue with invalid domain

* fix test

* fix fmt

* add build

* fix format

* fix format

* fixes etc

* Try the #24 error

* fix ci

* revert 1 off test

* update package & rebuild
@zrosenbauer
Copy link
Owner

zrosenbauer commented May 6, 2021

Merged #25 and released patch 1.1.2.

Please confirm the issue is resolved - @iamsilvio

@iamsilvio
Copy link
Author

@iamsilvio just to verify you are using the Slack Webhook? This Action DOES NOT error but returns the output with an error_message so you can send to PagerDuty, OpsGenie or other services if you'd like.

I expected a different behavior! But if I know that , I can also work with it :)

@iamsilvio
Copy link
Author

Merged #25 and released patch 1.1.2.

Please confirm the issue is resolved - @iamsilvio

Your fix solved it! Thx for your work!

@zrosenbauer
Copy link
Owner

@iamsilvio if you want it to error on failure we can possibly add that as a feature. Our goal is to provide the info so you can pass it to a 3rd party system.

zrosenbauer pushed a commit that referenced this issue Nov 9, 2021
* fix issue with invalid domain

* fix test

* fix fmt

* add build

* fix format

* fix format

* fixes etc

* Try the #24 error

* fix ci

* revert 1 off test

* update package & rebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something is broke but not on fire.
Projects
None yet
Development

No branches or pull requests

2 participants