Skip to content

Commit

Permalink
allow harden-runner to connect to any github subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
srabraham committed Nov 14, 2024
1 parent 9855890 commit 313c78a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
disable-file-monitoring: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
*.github.com:443
*.githubusercontent.com:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
- name: Checkout source code
Expand Down Expand Up @@ -74,10 +74,10 @@ jobs:
disable-file-monitoring: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
*.github.com:443
*.githubusercontent.com:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
- name: Checkout source code
Expand Down Expand Up @@ -115,10 +115,10 @@ jobs:
disable-file-monitoring: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
*.github.com:443
*.githubusercontent.com:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
- name: Checkout source code
Expand Down Expand Up @@ -189,11 +189,11 @@ jobs:
egress-policy: block
allowed-endpoints: >
*.codecov.io:443
api.github.com:443
*.github.com:443
*.githubusercontent.com:443
codecov.io:443
files.pythonhosted.org:443
github.com:443
objects.githubusercontent.com:443
pypi.org:443
storage.googleapis.com:443
Expand Down Expand Up @@ -308,7 +308,7 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
*.github.com:443
auth.docker.io:443
dl-cdn.alpinelinux.org:443
files.pythonhosted.org:443
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
*.github.com:443
auth.docker.io:443
github.com:443
production.cloudflare.docker.com:443
Expand Down Expand Up @@ -421,16 +421,15 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
*.github.com:443
*.githubusercontent.com:443
655216687927.dkr.ecr.us-west-2.amazonaws.com:443
api.ecr.us-west-2.amazonaws.com:443
ecs.us-west-2.amazonaws.com:443
email-smtp.us-west-2.amazonaws.com:465
files.pythonhosted.org:443
github.com:443
pypi.org:443
raw.githubusercontent.com:443
api.github.com:443
objects.githubusercontent.com:443
- name: Checkout source code
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
*.github.com:443
*.githubusercontent.com:443
ecs.us-west-2.amazonaws.com:443
files.pythonhosted.org:443
github.com:443
pypi.org:443
raw.githubusercontent.com:443
sts.us-west-2.amazonaws.com:443
api.github.com:443
objects.githubusercontent.com:443
- name: Check user
if: ${{ ! contains('["wsanchez", "mikeburg", "plapsley"]', github.actor) }}
Expand Down Expand Up @@ -85,11 +84,12 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
*.github.com:443
*.githubusercontent.com:443
ecs.us-west-2.amazonaws.com:443
files.pythonhosted.org:443
github.com:443
pypi.org:443
raw.githubusercontent.com:443
sts.us-west-2.amazonaws.com:443
- name: Check user
Expand Down

0 comments on commit 313c78a

Please sign in to comment.