Update readme
This commit is contained in:
@@ -23,7 +23,7 @@ Read more on the [1Password Developer Portal](https://developer.1password.com/do
|
|||||||
|
|
||||||
## ✨ Quickstart
|
## ✨ Quickstart
|
||||||
|
|
||||||
### Use secrets from step output (recommended)
|
### Export secrets as a step's output (recommended)
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
on: push
|
on: push
|
||||||
@@ -56,10 +56,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Load secret
|
- name: Load secret
|
||||||
id: load_secret
|
|
||||||
uses: 1password/load-secrets-action@v3
|
uses: 1password/load-secrets-action@v3
|
||||||
with:
|
with:
|
||||||
export-env: "true"
|
# Export loaded secrets as environment variables
|
||||||
|
export-env: true
|
||||||
env:
|
env:
|
||||||
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
|
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
|
||||||
SECRET: op://app-cicd/hello-world/secret
|
SECRET: op://app-cicd/hello-world/secret
|
||||||
|
|||||||
Reference in New Issue
Block a user