You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Load Secrets from 1Password - GitHub Action
2
2
3
-
The action to load secrets from [1Password Connect](https://1password.com/secrets/) into GitHub Actions.
3
+
This action loads secrets from [1Password Connect](https://1password.com/secrets/) into GitHub Actions.
4
4
5
5
Specify right from your workflow YAML which secrets from 1Password should be loaded into your job, and the action will make them available as environment variables for the next steps.
6
6
@@ -15,6 +15,8 @@ There are two ways that secrets can be loaded:
15
15
16
16
### Use secrets from the action's output
17
17
18
+
This approach enables the user to use the loaded secrets as an output from the step: `steps.step-id.outputs.secret-name`. You need to set an id for the step that uses this action to be able to access its outputs. More details about the metadata syntax [here](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#outputsoutput_id).
19
+
18
20
```yml
19
21
on: push
20
22
jobs:
@@ -81,6 +83,8 @@ jobs:
81
83
82
84
### Export secrets as environment variables
83
85
86
+
In this approach, the user can access the loaded secrets as environment variables. These environment variables are accessible at a job level.
0 commit comments