mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-23 20:08:52 +00:00
parent
79632e33d6
commit
26b605b758
3 changed files with 10 additions and 5 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
Major (Breaking Change):
|
||||||
|
|
||||||
|
* `exportEnv` now defaults to `false`. If you relied on that feature please switch it to `true` or reference via outputs.
|
||||||
|
This change was made to facilitate a better default supply chain security position. (https://github.com/hashicorp/vault-action/pull/598)
|
||||||
|
|
||||||
## 3.4.0 (June 13, 2025)
|
## 3.4.0 (June 13, 2025)
|
||||||
|
|
||||||
Bugs:
|
Bugs:
|
||||||
|
|
|
||||||
|
|
@ -357,7 +357,7 @@ steps:
|
||||||
run: "my-cli --token '${{ steps.secrets.outputs.npmToken }}'"
|
run: "my-cli --token '${{ steps.secrets.outputs.npmToken }}'"
|
||||||
```
|
```
|
||||||
|
|
||||||
_**Note:** If you'd like to only use outputs and disable automatic environment variables, you can set the `exportEnv` option to `false`._
|
_**Note:** By default, environment variable export is disabled. If you’d like to enable automatic environment variables, you can set the `exportEnv` option to `true`._
|
||||||
|
|
||||||
### Set Output Variable Name
|
### Set Output Variable Name
|
||||||
|
|
||||||
|
|
@ -403,7 +403,7 @@ with:
|
||||||
secret/data/ci/aws * | MYAPP_ ;
|
secret/data/ci/aws * | MYAPP_ ;
|
||||||
```
|
```
|
||||||
|
|
||||||
When using the `exportEnv` option all exported keys will be normalized to uppercase. For example, the key `SecretKey` would be exported as `MYAPP_SECRETKEY`.
|
When using the `exportEnv` option (when enabled), all exported keys will be normalized to uppercase. For example, the key `SecretKey` would be exported as `MYAPP_SECRETKEY`.
|
||||||
You can disable uppercase normalization by specifying double asterisks `**` in the selector path:
|
You can disable uppercase normalization by specifying double asterisks `**` in the selector path:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
@ -675,9 +675,9 @@ A string of newline separated extra headers to include on every request.
|
||||||
### `exportEnv`
|
### `exportEnv`
|
||||||
|
|
||||||
**Type: `string`**\
|
**Type: `string`**\
|
||||||
**Default: `true`**
|
**Default: `false`**
|
||||||
|
|
||||||
Whether or not to export secrets as environment variables.
|
Whether or not to export secrets as environment variables. This is disabled by default and must be explicitly enabled if environment variable export is desired.
|
||||||
|
|
||||||
### `exportToken`
|
### `exportToken`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ inputs:
|
||||||
required: false
|
required: false
|
||||||
exportEnv:
|
exportEnv:
|
||||||
description: 'Whether or not export secrets as environment variables.'
|
description: 'Whether or not export secrets as environment variables.'
|
||||||
default: 'true'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
exportToken:
|
exportToken:
|
||||||
description: 'Whether or not export Vault token as environment variables.'
|
description: 'Whether or not export Vault token as environment variables.'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue