Skip to content

Add support for secrets in __dangerous__body_down_if_text_missing #898

Answered by KaKi87
KaKi87 asked this question in Ideas
Discussion options

You must be logged in to vote

This is how we deal with Actions secrets in url - upptime/uptime-monitor@master/src/update.ts#L158

Thanks, then I suggest replacing these :

result.data.includes(site.__dangerous__body_down)
result.data.includes(site.__dangerous__body_degraded)
!result.data.includes(site.__dangerous__body_degraded_if_text_missing)
!result.data.includes(site.__dangerous__body_down_if_text_missing)

With these :

result.data.includes(replaceEnvironmentVariables(site.__dangerous__body_down))
result.data.includes(replaceEnvironmentVariables(site.__dangerous__body_degraded))
!result.data.includes(replaceEnvironmentVariables(site.__dangerous__body_degraded_if_text_missing))
!result.data.includes(replaceEnvironme…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AnandChowdhary
Comment options

@KaKi87
Comment options

Answer selected by AnandChowdhary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #894 on December 16, 2023 15:50.