Skip to content

Commit c81441f

Browse files
committed
FreeSWITCH CI: Mask the nonce in logs
1 parent a8f591b commit c81441f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/actions/repo-auth-client/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ runs:
6262
f"https://${{ inputs.domain }}/auth.php", session
6363
)
6464
65+
# Mask the nonce in logs
66+
print(f'::add-mask::{nonce}')
67+
6568
with open(os.getenv('GITHUB_OUTPUT'), 'a') as f:
6669
f.write(f'nonce={nonce}\n')
6770
except Exception as e:
@@ -106,6 +109,9 @@ runs:
106109
f'https://${{ inputs.domain }}/?{urlencode({"verify": "${{ env.NONCE }}"})}', session
107110
)
108111
112+
# Mask the token in logs
113+
print(f'::add-mask::{token}')
114+
109115
with open(os.getenv('GITHUB_OUTPUT'), 'a') as f:
110116
f.write(f'token={token}\n')
111117
except Exception as e:

0 commit comments

Comments
 (0)