Skip to content

Commit 03edacc

Browse files
committed
more broken links
1 parent 5e6fc92 commit 03edacc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_posts/2025-03-13-python-packaging-security-pypi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ To lock down a GitHub environment:
104104
105105
106106
<figure>
107+
<source srcset="/images/python-packaging/github-action-environment-pypi.webp" type="image/webp">
107108
<img src="/images/python-packaging/github-action-environment-pypi.png" alt="Screenshot of the GitHub settings interface showing the ‘Environments’ section with configuration options for ‘pypi.’ The ‘Deployment protection rules’ section is visible, with ‘Required reviewers’ enabled and two reviewers listed: ‘lwasser’ and ‘willingc.’ Other options such as ‘Prevent self-review’ and ‘Wait timer’ are present but not enabled.">
108109
<figcaption>
109110
GitHub environment settings for “pypi,” displaying deployment protection rules with required reviewers configured for workflow approvals.
@@ -122,6 +123,7 @@ A Trusted Publisher setup creates a secure link between PyPI and your repository
122123
Using a Trusted Publisher combined with a locked-down environment eliminates the need to store sensitive tokens as GitHub secrets. It also removes the need to refresh and update tokens periodically to avoid token leaks or theft issues.
123124
124125
<figure>
126+
<source srcset="/images/python-packaging/trusted-publisher-pypi-github.webp" type="image/webp">
125127
<img src="/images/python-packaging/trusted-publisher-pypi-github.png" alt="A workflow diagram showing GitHub Actions building distribution files (sdist and wheel), publishing them securely to PyPI, represented as a warehouse. The diagram includes a lock icon emphasizing security, with the pyOpenSci logo in the top-left corner.">
126128
<figcaption>
127129
Example of the PyPI Trusted Publisher form, used to securely link a GitHub repository with PyPI for publishing Python packages. Trusted Publisher reduces the risk of token theft and improves overall security.
@@ -148,7 +150,7 @@ The steps for setting up Trusted Publisher are:
148150
<figure>
149151
<picture>
150152
<source srcset="/images/python-packaging/trusted-publisher-form.webp" type="image/webp">
151-
<img src="trusted-publisher-form.webp" alt="PyPI Trusted Publisher form example showing settings for linking a GitHub repository with PyPI for secure publishing." loading="lazy">
153+
<img src="/images/python-packaging/trusted-publisher-form.png" alt="PyPI Trusted Publisher form example showing settings for linking a GitHub repository with PyPI for secure publishing." loading="lazy">
152154
</picture>
153155
<figcaption>
154156
Example of the PyPI Trusted Publisher form, used to securely link a GitHub repository with PyPI for publishing Python packages. Trusted Publisher reduces the risk of token theft and improves overall security.
@@ -161,7 +163,7 @@ For an example of a GitHub workflow that uses Trusted Publishing, check out our
161163
<figure>
162164
<picture>
163165
<source srcset="/images/python-packaging/trusted-publisher-manage.webp" type="image/webp">
164-
<img src="trusted-publisher-form.webp" alt="PyPI Trusted Publisher manage settings showing what the Trusted Publisher setup looks like after you've created it in PyPI. It shows all of the items that you filled out in the form and has a remove button if you want to remove it from PyPI. " loading="lazy">
166+
<img src="/images/python-packaging/trusted-publisher-manage.png" alt="PyPI Trusted Publisher manage settings showing what the Trusted Publisher setup looks like after you've created it in PyPI. It shows all of the items that you filled out in the form and has a remove button if you want to remove it from PyPI. " loading="lazy">
165167
</picture>
166168
<figcaption>
167169
Example of the PyPI Trusted Publisher setup in PyPI once you've created the Trusted PuUblisher link by filling the form out above.

0 commit comments

Comments
 (0)