Skip to content

Commit

Permalink
auto-mask token secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Aug 15, 2023
1 parent c52db41 commit 19c5d7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ async function setupTempConfig() {
function setOutput() {
const fname = path.join(process.env.HOME, '.plural', 'config.yml')
const config = yaml.load(fs.readFileSync(fname, 'utf8'));
const token = config?.spec?.token || config?.token
if (token) {
core.setSecret(token)
}

core.setOutput('token', config?.spec?.token || config?.token)
}

Expand Down

0 comments on commit 19c5d7e

Please sign in to comment.