Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow harden-runner to connect to any github subdomains #1411

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading