Skip to content

Commit 7efd44d

Browse files
committed
fix (cd): replaced releaste tag permissions with pypi api token inside the publish pypi workflow and added quotes around cargo regisry token env var to enable correct parsing
Signed-off-by: rafaeljohn9 <[email protected]>
1 parent 763f1d9 commit 7efd44d

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.github/workflows/publish-cargo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
- name: Install Rust
1717
uses: dtolnay/rust-toolchain@stable
1818

19-
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
19+
- run: cargo publish --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ jobs:
2525
2626
- name: Publish to PyPI
2727
uses: pypa/gh-action-pypi-publish@release/v1
28-
# Uses trusted publishing via id-token — no API token needed
28+
with:
29+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/release-tag.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ on:
55
tags: ["v*.*.*"]
66
workflow_dispatch:
77

8-
permissions:
9-
id-token: write
10-
contents: read
11-
packages: write
12-
138
jobs:
149
build:
1510
uses: ./.github/workflows/build-binaries.yml

0 commit comments

Comments
 (0)