setSecret (#174)

* setSecret
This commit is contained in:
Bryan MacFarlane
2019-10-01 17:13:05 -04:00
committed by GitHub
parent 713902387e
commit 9d54cd22ea
6 changed files with 22 additions and 47 deletions

View File

@@ -32,10 +32,12 @@ Since each step runs in a separate process, you can use `exportVariable` to add
core.exportVariable('envVar', 'Val');
```
Exporting a secret exports the variable but also registers the secret with the runner to ensure it is masked in logs.
#### Setting a secret
Setting a secret registers the secret with the runner to ensure it is masked in logs.
```js
core.exportSecret('myPassword', mypass);
core.setSecret('myPassword');
```
#### PATH Manipulation