Skip to content

Commit

Permalink
De-Harden
Browse files Browse the repository at this point in the history
The hostnames are too unpredictable.
  • Loading branch information
hynek committed Jun 2, 2023
1 parent f28261a commit 193d514
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@ jobs:
- "pypy-3.8"

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -84,15 +73,6 @@ jobs:
needs: tests

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
github.com:443
pypi.org:443
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/download-artifact@v3
Expand Down Expand Up @@ -120,16 +100,6 @@ jobs:
SETUPTOOLS_SCM_PRETEND_VERSION: "" # inconsistency error otherwise

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
azure.archive.ubuntu.com:80
files.pythonhosted.org:443
github.com:443
pypi.org:443
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -185,14 +155,6 @@ jobs:
SETUPTOOLS_SCM_PRETEND_VERSION: ""

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
github.com:443
pypi.org:443
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -207,15 +169,6 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
github.com:443
pypi.org:443
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: python -Im pip install -e .[dev]
Expand All @@ -236,11 +189,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block

- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@ jobs:
language: ["python"]

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
bootstrap.pypa.io:443
files.pythonhosted.org:443
github.com:443
pypi.org:443
uploads.github.com:443
- name: Checkout repository
uses: actions/checkout@v3

Expand Down

0 comments on commit 193d514

Please sign in to comment.