mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-05 07:13:15 +08:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user