Skip to content

Commit

Permalink
✨ Add permissions for ID token in pre-release workflow (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 authored Dec 26, 2024
1 parent 5b3fbaf commit 245b808
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
test_pypi_publish:
name: Upload package to Test PyPI
runs-on: ubuntu-latest

# Use Permissions to access the repository
permissions:
id-token: write

steps:
- uses: actions/checkout@v4

Expand All @@ -27,7 +32,5 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: pragma-sdk/dist
attestations: false
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true

0 comments on commit 245b808

Please sign in to comment.