diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7487989..ccaa90e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -166,10 +166,20 @@ jobs: with: node-version: "20" + - name: Retrieve Credentials + id: import-secrets + uses: hashicorp/vault-action@v3.0.0 + 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