Skip to content

Commit f5d49d5

Browse files
committed
chore: Allow unsecure node in wheel actions
1 parent ac1f683 commit f5d49d5

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/release.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
jobs:
77
build_wheels_linux_arm64:
88
container:
9+
env:
10+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
911
image: ghcr.io/pantsbuild/wheel_build_aarch64:v3-8384c5cf
1012
env:
1113
PANTS_REMOTE_CACHE_READ: 'false'
@@ -82,6 +84,8 @@ jobs:
8284
timeout-minutes: 90
8385
build_wheels_linux_x86_64:
8486
container:
87+
env:
88+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
8589
image: quay.io/pypa/manylinux2014_x86_64:latest
8690
env:
8791
PANTS_REMOTE_CACHE_READ: 'false'

.github/workflows/test.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ jobs:
299299
timeout-minutes: 60
300300
build_wheels_linux_arm64:
301301
container:
302+
env:
303+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
302304
image: ghcr.io/pantsbuild/wheel_build_aarch64:v3-8384c5cf
303305
env:
304306
MODE: debug
@@ -358,6 +360,8 @@ jobs:
358360
timeout-minutes: 90
359361
build_wheels_linux_x86_64:
360362
container:
363+
env:
364+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
361365
image: quay.io/pypa/manylinux2014_x86_64:latest
362366
env:
363367
MODE: debug

src/python/pants_release/generate_github_workflows.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -856,12 +856,16 @@ def build_wheels_job(
856856
# the code, install rustup and expose Pythons.
857857
# TODO: Apply rust caching here.
858858
if platform == Platform.LINUX_X86_64:
859-
container = {"image": "quay.io/pypa/manylinux2014_x86_64:latest"}
859+
container = {
860+
"image": "quay.io/pypa/manylinux2014_x86_64:latest",
861+
"env": {"ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION": True},
862+
}
860863
elif platform == Platform.LINUX_ARM64:
861864
# Unfortunately Equinix do not support the CentOS 7 image on the hardware we've been
862865
# generously given by the Works on ARM program. So we have to build in this image.
863866
container = {
864867
"image": "ghcr.io/pantsbuild/wheel_build_aarch64:v3-8384c5cf",
868+
"env": {"ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION": True},
865869
}
866870
else:
867871
container = None

0 commit comments

Comments
 (0)