Skip to content

Commit

Permalink
fix: added vault to CI (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding authored Jul 11, 2024
1 parent 354722a commit 6e63f8d
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 @@ -166,10 +166,20 @@ jobs:
with:
node-version: "20"

- name: Retrieve Credentials
id: import-secrets
uses: hashicorp/[email protected]
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: Install dependencies
run: npm ci

- 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 6e63f8d

Please sign in to comment.