GitHub Action
1Password Load Secrets Action
v1
Latest version
Loads secrets into your GitHub runner from 1Password
A slightly better version of Load secrets from 1Password by 1Password
Refer to 1Password's developer documentation for more on how you can use this action.
- Persistent install of 1Password CLI throughout the entire job
- Windows runner support
- All the original features from Load secrets from 1 Password
on: workflow_dispatch
jobs:
matrix_jobs:
strategy:
matrix:
os: ['ubuntu', 'macos', 'windows']
runs-on: ${{ matrix.os }}-latest
continue-on-error: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_TOKEN }}
steps:
- uses: KamaranL/1password-load-secrets-action@v1
env:
GH_TOKEN: op://Integrations/GitHub.kamaranl.CICD/credential
- run: |
Write-Host "GH_TOKEN: $env:GH_TOKEN"
shell: powershell
if: matrix.os == 'windows'
- run: |
echo "GH_TOKEN: $GH_TOKEN"
if: matrix.os != 'windows'
- run: op whoami
- Thanks to 1Password for developing such a great product