Skip to content

Commit

Permalink
chore(.github/workflows/gitguardian): fetch secrets from 1password
Browse files Browse the repository at this point in the history
  • Loading branch information
jon77p committed Oct 25, 2023
1 parent b373837 commit 742132e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/gitguardian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
# Configure 1Password Service Account
- name: Configure 1Password Service Account
uses: 1Password/load-secrets-action/configure@d1a4e73495bde3551cf63f6c048588b8f734e21d # v1
id: configure-1password
with:
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
# Fetch TERRAFORM_CLOUD_TOKEN from 1Password using load-secrets-action
- name: Fetch TERRAFORM_CLOUD_TOKEN from 1Password
# Fetch GITGUARDIAN_API_KEY from 1Password using load-secrets-action
- name: Fetch Secrets from 1Password
uses: 1Password/load-secrets-action@d1a4e73495bde3551cf63f6c048588b8f734e21d # v1
id: fetch-gitguardian-token
id: fetch-secrets
with:
export-env: false
env:
Expand All @@ -29,7 +30,7 @@ jobs:
uses: GitGuardian/gg-shield-action@master
env:
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.after }}
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITGUARDIAN_API_KEY: ${{ steps.fetch-gitguardian-token.outputs.GITGUARDIAN_API_KEY}}
GITGUARDIAN_API_KEY: ${{ steps.fetch-secrets.outputs.GITGUARDIAN_API_KEY}}

0 comments on commit 742132e

Please sign in to comment.