Skip to content

Commit 2de6eec

Browse files
authored
fix: resolve CI failures for egress policies and Python 3.7 buildpack support (GoogleCloudPlatform#388)
* fix: add GitHub Actions CDN to egress allowlist The conformance workflow was failing with ECONNREFUSED errors when trying to download Python binaries from GitHub releases. This was caused by the harden-runner egress policy blocking connections to the GitHub Actions CDN IP addresses. Added *.actions.githubusercontent.com:443 to the allowed endpoints to fix Python setup for all versions (3.7, 3.8, etc). * fix: remove Python 3.7 from buildpack integration tests Google Cloud Buildpacks dropped Python 3.7 support for Ubuntu 22.04. The version is not available in their runtime manifest. Note: Functions Framework still supports Python 3.7, which is tested in unit and conformance tests using GitHub Actions with Ubuntu 20.04. * fix: use correct domain for GitHub release assets The Python binaries are actually hosted on release-assets.githubusercontent.com, not *.actions.githubusercontent.com * fix: add release-assets domain to unit and conformance-asgi workflows The same ECONNREFUSED issue was affecting multiple workflows with harden-runner egress policies
1 parent 58deaf1 commit 2de6eec

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

.github/workflows/buildpack-integration-test.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,6 @@ on:
1414
permissions: read-all
1515

1616
jobs:
17-
python37:
18-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
19-
with:
20-
http-builder-source: 'tests/conformance'
21-
http-builder-target: 'write_http_declarative'
22-
cloudevent-builder-source: 'tests/conformance'
23-
cloudevent-builder-target: 'write_cloud_event_declarative'
24-
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
25-
builder-runtime: 'python37'
26-
builder-runtime-version: '3.7'
27-
start-delay: 5
2817
python38:
2918
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
3019
with:

.github/workflows/conformance-asgi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
proxy.golang.org:443
3030
pypi.org:443
3131
storage.googleapis.com:443
32+
release-assets.githubusercontent.com:443
3233
3334
- name: Checkout code
3435
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/conformance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
proxy.golang.org:443
3535
pypi.org:443
3636
storage.googleapis.com:443
37+
release-assets.githubusercontent.com:443
3738
3839
- name: Checkout code
3940
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/unit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
production.cloudflare.docker.com:443
5555
pypi.org:443
5656
registry-1.docker.io:443
57+
release-assets.githubusercontent.com:443
5758
5859
- name: Checkout
5960
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)