Skip to content

Commit 4fc474e

Browse files
committed
Fetch publishing secret from vault
1 parent b8db726 commit 4fc474e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: grafana/shared-workflows/actions/get-vault-secrets@main
13+
with:
14+
vault_instance: dev
15+
# Secrets placed in the ci/repo/grafana/otel-profiling-python/ path in Vault
16+
repo_secrets: |
17+
PYPI_API_TOKEN=publishing:pypi_api_key
1218
- uses: robinraju/release-downloader@v1.4
1319
with:
1420
tag: ${{ github.event.release.tag_name }}
@@ -21,4 +27,4 @@ jobs:
2127
uses: pypa/gh-action-pypi-publish@release/v1
2228
with:
2329
user: __token__
24-
password: ${{ secrets.PYPI_API_TOKEN }}
30+
password: ${{ env.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)