Skip to content

Commit

Permalink
ci: add Vault CI as bypasser (#1979)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding authored Jan 7, 2024
1 parent 0967552 commit fcc3445
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ jobs:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Retrieve Credentials
id: import-secrets
uses: hashicorp/vault-action@v2
with:
url: https://vault.prism.spectrocloud.com
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
secrets: /providers/github/organizations/spectrocloud/token?org_name=spectrocloud token | VAULT_GITHUB_TOKEN

- name: Setup Nodejs
uses: actions/setup-node@v3
with:
Expand All @@ -123,5 +133,5 @@ jobs:

- name: "release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.import-secrets.outputs.VAULT_GITHUB_TOKEN }}
run: npx semantic-release

0 comments on commit fcc3445

Please sign in to comment.