Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
2b6aa267
Commit
2b6aa267
authored
Dec 28, 2021
by
racitup
Committed by
neil
Jan 06, 2022
Browse files
fix: Neilpang review
parent
95f13360
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_mythic_beasts.sh
View file @
2b6aa267
...
...
@@ -163,13 +163,13 @@ _initAuth() {
# Github appears to use an outbound proxy for requests which means subsequent requests may not have the same
# source IP. The standard Mythic Beasts OAuth2 tokens are tied to an IP, meaning github test requests fail
# authentication. This work
s
around
s this by
using an undocumented MB API to obtain a token not tied to an
# authentication. This
is a
work around using an undocumented MB API to obtain a token not tied to an
# IP just for the github tests.
_oauth2
()
{
if
[
"
$TEST_DNS
"
!=
"dns_mythic_beasts"
]
;
then
_oauth2_std
else
if
[
"
$GITHUB_ACTIONS
"
=
"true"
]
;
then
_oauth2_github
else
_oauth2_std
fi
return
$?
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment