mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-10 16:46:56 +00:00
docs(readme): update readme
This commit is contained in:
parent
2ae5b6c884
commit
57fbb9d420
1 changed files with 15 additions and 2 deletions
17
README.md
17
README.md
|
|
@ -14,7 +14,6 @@ jobs:
|
||||||
uses: RichiCoder1/vault-action
|
uses: RichiCoder1/vault-action
|
||||||
with:
|
with:
|
||||||
url: https://vault.mycompany.com:8200
|
url: https://vault.mycompany.com:8200
|
||||||
method: token
|
|
||||||
token: ${{ secrets.VaultToken }}
|
token: ${{ secrets.VaultToken }}
|
||||||
secrets: |
|
secrets: |
|
||||||
ci/aws accessKey | AWS_ACCESS_KEY_ID ;
|
ci/aws accessKey | AWS_ACCESS_KEY_ID ;
|
||||||
|
|
@ -26,8 +25,22 @@ jobs:
|
||||||
## Authentication method
|
## Authentication method
|
||||||
|
|
||||||
The `method` parameter can have these value :
|
The `method` parameter can have these value :
|
||||||
- **token**: you must provide a token parameter
|
- **token**: (by default) you must provide a token parameter
|
||||||
|
```yaml
|
||||||
|
...
|
||||||
|
with:
|
||||||
|
url: https://vault.mycompany.com:8200
|
||||||
|
token: ${{ secrets.VaultToken }}
|
||||||
|
```
|
||||||
- **approle**: you must provide a roleId & secretId parameter
|
- **approle**: you must provide a roleId & secretId parameter
|
||||||
|
```yaml
|
||||||
|
...
|
||||||
|
with:
|
||||||
|
url: https://vault.mycompany.com:8200
|
||||||
|
method: approle
|
||||||
|
roleId: ${{ secrets.roleId }}
|
||||||
|
secretId : ${{ secrets.secretId }}
|
||||||
|
```
|
||||||
|
|
||||||
## Key Syntax
|
## Key Syntax
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue