-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace unpinned actions with pinned action
- Loading branch information
Stacklok Bot
committed
Dec 15, 2023
1 parent
b3c7ec6
commit a63425a
Showing
2 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
name: Example Workflow | ||
|
||
on: [push] | ||
|
||
jobs: | ||
retrieve-secret: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Load secret | ||
uses: 1password/load-secrets-action@v1 | ||
with: | ||
export-env: true | ||
env: | ||
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | ||
SECRET: op://infra/Test1password/credential | ||
|
||
- name: Use Secret | ||
run: echo "Secret value is $SECRET" | ||
- name: Checkout | ||
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 | ||
- name: Load secret | ||
uses: 1password/load-secrets-action@6d1c2654be9ad019ca5c3839a61e91f6f1c10635 # v1 | ||
with: | ||
export-env: true | ||
env: | ||
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | ||
SECRET: op://infra/Test1password/credential | ||
- name: Use Secret | ||
run: echo "Secret value is $SECRET" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters