From b9bbc3b070790fac41bdf266f44cdf9000728dee Mon Sep 17 00:00:00 2001 From: Jan Klopper Date: Wed, 3 Jul 2024 22:16:24 +0200 Subject: [PATCH] Fix/sonarcloud https redirect dockerfiles (#3185) --- packaging/debian12/Dockerfile | 2 +- packaging/ubuntu22.04/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/debian12/Dockerfile b/packaging/debian12/Dockerfile index 459887a2a53..fb84e04b8c0 100644 --- a/packaging/debian12/Dockerfile +++ b/packaging/debian12/Dockerfile @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive SHELL ["/bin/bash", "-c"] RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && mkdir -p /etc/apt/keyrings && \ - curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ + curl --proto "=https" -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ echo "deb [signed-by=/etc/apt/keyrings/nodesource.asc] https://deb.nodesource.com/node_20.x bookworm main" > /etc/apt/sources.list.d/nodesource.list RUN apt-get update && apt-get -y upgrade && \ diff --git a/packaging/ubuntu22.04/Dockerfile b/packaging/ubuntu22.04/Dockerfile index ab8cb4f0ee2..11b8c43070b 100644 --- a/packaging/ubuntu22.04/Dockerfile +++ b/packaging/ubuntu22.04/Dockerfile @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive SHELL ["/bin/bash", "-c"] RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && mkdir -p /etc/apt/keyrings && \ - curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ + curl --proto "=https" -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/keyrings/nodesource.asc && \ echo "deb [signed-by=/etc/apt/keyrings/nodesource.asc] https://deb.nodesource.com/node_20.x jammy main" > /etc/apt/sources.list.d/nodesource.list RUN apt-get update && apt-get -y upgrade && \