maskSecret function
Hides the secret on GitHub Actions, replaces it with '***'
Implementation
void maskSecret(String secret) {
if (env['GITHUB_ACTIONS'] == 'true') {
// hide secret on github actions
core.setSecret(secret);
}
}
Hides the secret on GitHub Actions, replaces it with '***'
void maskSecret(String secret) {
if (env['GITHUB_ACTIONS'] == 'true') {
// hide secret on github actions
core.setSecret(secret);
}
}