Skip to content

Commit b002860

Browse files
committed
Github workflows: Only upload to pypi in upstream repo
This is not a security measure: it makes testing the CD/release workflow (at least the non-pypi-upload parts) in a fork a little easier as the pypi upload is skipped. This does make testing the pypi upload even more difficult but maybe that is acceptable? Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent 327fcf8 commit b002860

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
path: dist
8383

8484
- name: Publish binary wheel and source tarball on PyPI
85+
# Only attempt pypi upload in upstream repository
86+
if: github.repository == 'theupdateframework/python-tuf'
8587
uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f
8688
with:
8789
user: __token__

0 commit comments

Comments
 (0)