Skip to content

Commit

Permalink
Audit ports (#490)
Browse files Browse the repository at this point in the history
### What kind of change does this PR introduce?

* Sets the security system to audit the new connection list for
uploading to PyPI and TestPyPI

### Does this PR introduce a breaking change?

No.

### Other information:

https://peps.python.org/pep-0740/

https://github.com/marketplace/actions/pypi-publish#generating-and-uploading-attestations
  • Loading branch information
Zeitsperre authored Nov 4, 2024
2 parents 8ae81fe + 09b2252 commit 7dcdacf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
fulcio.sigstore.dev:443
github.com:443
pypi.org:443
tuf-repo-cdn.sigstore.dev:443
upload.pypi.org:443
# disable-sudo: true
egress-policy: audit
# allowed-endpoints: >
# files.pythonhosted.org:443
# fulcio.sigstore.dev:443
# github.com:443
# pypi.org:443
# tuf-repo-cdn.sigstore.dev:443
# upload.pypi.org:443
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python3
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tag-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
fulcio.sigstore.dev:443
github.com:443
pypi.org:443
test.pypi.org:443
tuf-repo-cdn.sigstore.dev:443
# disable-sudo: true
egress-policy: audit
# allowed-endpoints: >
# files.pythonhosted.org:443
# fulcio.sigstore.dev:443
# github.com:443
# pypi.org:443
# test.pypi.org:443
# tuf-repo-cdn.sigstore.dev:443
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python3
Expand Down

0 comments on commit 7dcdacf

Please sign in to comment.