Skip to content

Commit 2c98bbf

Browse files
authored
Merge pull request #50 from grafana/academo/use-vault-output
Chore: Use get-vault-secrets without exporting env variables
2 parents 243cfdc + d020415 commit 2c98bbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-npm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
packages: write
1515
steps:
1616
- id: get-secrets
17-
uses: grafana/shared-workflows/actions/get-vault-secrets@28361cdb22223e5f1e34358c86c20908e7248760 # get-vault-secrets-v1.1.0
17+
uses: grafana/shared-workflows/actions/get-vault-secrets@get-vault-secrets/v1.2.1 # zizmor: ignore[unpinned-uses] provided by grafana
1818
with:
1919
repo_secrets: |
2020
NPM_TOKEN=npm_token:npm_token
21+
export_env: false
2122

2223
- name: Checkout repository
2324
uses: actions/checkout@v4
@@ -56,4 +57,4 @@ jobs:
5657
if: steps.version_check.outputs.changed == 'true'
5758
run: npm publish --access public
5859
env:
59-
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}
60+
NODE_AUTH_TOKEN: ${{ fromJSON(steps.get-secrets.outputs.secrets).NPM_TOKEN }}

0 commit comments

Comments
 (0)