Skip to content
Open
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
35 changes: 35 additions & 0 deletions .github/actions/set-cve-updates/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright NVIDIA CORPORATION
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Set CVE Updates
description: >
Sets the CVE_UPDATES environment variable with the list of packages to
upgrade for CVE remediation, based on the target distribution family.
inputs:
dist:
description: >
Target distribution string (e.g. ubuntu22.04, ubuntu24.04, rhel8,
rhel9, rhel10, rocky9). The action matches on the family prefix.
required: true
runs:
using: composite
steps:
- name: Set CVE_UPDATES
shell: bash
run: |
if [[ "${{ inputs.dist }}" =~ ^(rhel|rocky) ]]; then
echo "CVE_UPDATES=openssl python3-urllib3 libarchive libxml2 pam python3 sqlite-libs gnupg2" >> $GITHUB_ENV
elif [[ "${{ inputs.dist }}" =~ "ubuntu" ]]; then
echo "CVE_UPDATES=gnupg libssl3" >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll review and update this list once #636 is merged as I need to experiment and update it as required.

fi
14 changes: 8 additions & 6 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ jobs:
fi
echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
echo "BUILD_MULTI_ARCH_IMAGES=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV

if [[ "${{ matrix.dist }}" =~ "rhel" || "${{ matrix.dist }}" =~ "rocky" ]]; then
echo "CVE_UPDATES=openssl python3-urllib3 libarchive libxml2 pam python3 sqlite-libs gnupg2" >> $GITHUB_ENV
elif [[ "${{ matrix.dist }}" =~ "ubuntu" ]]; then
echo "CVE_UPDATES=gnupg2" >> $GITHUB_ENV
fi

- name: Set CVE updates
uses: ./.github/actions/set-cve-updates
with:
dist: ${{ matrix.dist }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand Down Expand Up @@ -157,6 +155,10 @@ jobs:
echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
echo "BUILD_MULTI_ARCH_IMAGES=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV

- name: Set CVE updates
uses: ./.github/actions/set-cve-updates
with:
dist: ${{ matrix.dist }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ jobs:
echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
echo "BUILD_MULTI_ARCH_IMAGES=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV

- name: Set CVE updates
uses: ./.github/actions/set-cve-updates
with:
dist: ${{ matrix.dist }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion ubuntu24.04/precompiled/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN dpkg --add-architecture i386 && \
build-essential \
ca-certificates \
curl \
gpg \
kmod \
file \
gnupg \
libelf-dev \
libglvnd-dev \
pkg-config && \
Expand Down