Skip to content

Replace unpinned actions with pinned action (#18) #7

Replace unpinned actions with pinned action (#18)

Replace unpinned actions with pinned action (#18) #7

Workflow file for this run

name: Example Workflow
on: [push]
jobs:
retrieve-secret:
runs-on: ubuntu-latest
steps:
- 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"