Skip to content

Commit 3e054e1

Browse files
committed
Align publish workflow guard with trusted publishing
1 parent 2077730 commit 3e054e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_p9_auto.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def test_publish_all_packages_workflow_uses_tokens_choices_and_pinned_actions():
4747
assert '- wt-peer-probes' in workflow
4848
assert 'environment: testpypi' in workflow
4949
assert 'environment: pypi' in workflow
50-
assert 'secrets.PYPI_API_TOKEN' in workflow
51-
assert 'user: __token__' in workflow
52-
assert 'password: ${{ secrets.PYPI_API_TOKEN }}' in workflow
50+
assert 'id-token: write' in workflow
51+
assert 'user: __token__' not in workflow
52+
assert 'password: ${{ secrets.PYPI_API_TOKEN }}' not in workflow
5353
assert 'create-github-tags' in workflow
5454
assert 'create-github-releases' not in workflow
5555
assert 'github_releases = plan.get("github_releases", [])' in workflow

0 commit comments

Comments
 (0)