Skip to content

Commit

Permalink
Create 1password.yml (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehinds authored Dec 11, 2023
1 parent f260c1e commit e62adfd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/1password.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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/secret

- name: Use Secret
run: echo "Secret value is $SECRET"

0 comments on commit e62adfd

Please sign in to comment.