Skip to content

Commit 2dcd442

Browse files
committed
Refactor publish commands in CI workflows to remove provenance flag
- Updated publish-python-sdk.yml and release-python-sdk.yml to remove the --provenance flag from the uv publish command, simplifying the publishing process. - Adjusted the SBOM verification command in release-python-sdk.yml to directly use the github.ref_name variable for improved accuracy.
1 parent 4983255 commit 2dcd442

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/publish-python-sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ jobs:
146146
exit 0
147147
elif [ "$HTTP_STATUS" = "404" ]; then
148148
echo "Version $VERSION not found on PyPI. Proceeding with publish."
149-
uv publish --provenance
149+
uv publish
150150
else
151151
echo "Unexpected HTTP status $HTTP_STATUS when checking PyPI. Proceeding with publish."
152-
uv publish --provenance
152+
uv publish
153153
fi
154154
155155
- name: Upload SBOM artifacts

.github/workflows/release-python-sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ jobs:
175175
echo "You can verify this package's provenance on PyPI using:" >> sbom-summary.md
176176
echo '```bash' >> sbom-summary.md
177177
echo 'pip install sigstore' >> sbom-summary.md
178-
echo 'python -m sigstore verify --bundle <bundle-file> exospherehost==${{ startsWith(github.ref_name, 'v') && substring(github.ref_name, 1) || github.ref_name }}' >> sbom-summary.md
178+
echo 'python -m sigstore verify --bundle <bundle-file> exospherehost==${{ github.ref_name }}' >> sbom-summary.md
179179
echo '```' >> sbom-summary.md
180180
181181
- run: uv build
182182

183183
- name: Publish to PyPI with provenance
184-
run: uv publish --provenance
184+
run: uv publish
185185

186186
- name: Upload SBOM artifacts
187187
uses: actions/upload-artifact@v4
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.0.2b8"
1+
version = "0.0.2b7"

0 commit comments

Comments
 (0)