diff --git a/.github/workflows/multi_arch_build_native_linux_packages.yml b/.github/workflows/multi_arch_build_native_linux_packages.yml index be41afbf626..6db6a325736 100644 --- a/.github/workflows/multi_arch_build_native_linux_packages.yml +++ b/.github/workflows/multi_arch_build_native_linux_packages.yml @@ -73,7 +73,7 @@ jobs: name: Build ${{ inputs.native_package_type }} packages runs-on: ${{ github.repository_owner == 'ROCm' && inputs.build_runs_on || 'ubuntu-24.04' }} container: - image: ghcr.io/rocm/no_rocm_image_ubuntu24_04:latest + image: ghcr.io/rocm/no_rocm_image_ubuntu24_04@sha256:15241d0e87bf81fe0986006ab832a36ea53a2cda0f9a31b4a5dc7826bc2396b6 outputs: package_repository_url: ${{ steps.upload-packages.outputs.package_repository_url }} summary: ${{ steps.summary.outputs.summary }} diff --git a/.github/workflows/multi_arch_build_tarballs.yml b/.github/workflows/multi_arch_build_tarballs.yml index 91fd1a9598b..f9fc807a61e 100644 --- a/.github/workflows/multi_arch_build_tarballs.yml +++ b/.github/workflows/multi_arch_build_tarballs.yml @@ -102,7 +102,8 @@ jobs: name: Build Tarballs runs-on: ${{ github.repository_owner == 'ROCm' && inputs.build_runs_on || 'ubuntu-24.04' }} container: - image: python:3.12-slim + # https://hub.docker.com/_/python/tags?name=3.12-slim + image: python:3.12-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f permissions: contents: read id-token: write diff --git a/.github/workflows/multi_arch_ci_linux.yml b/.github/workflows/multi_arch_ci_linux.yml index 6c4970c9e7b..852edc53278 100644 --- a/.github/workflows/multi_arch_ci_linux.yml +++ b/.github/workflows/multi_arch_ci_linux.yml @@ -61,7 +61,8 @@ jobs: contents: read id-token: write container: - image: python:3.12-slim + # https://hub.docker.com/_/python/tags?name=3.12-slim + image: python:3.12-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f steps: - name: Checking out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/test_artifacts_structure.yml b/.github/workflows/test_artifacts_structure.yml index 51b5a059ddc..a8bf78dfe4b 100644 --- a/.github/workflows/test_artifacts_structure.yml +++ b/.github/workflows/test_artifacts_structure.yml @@ -74,7 +74,8 @@ jobs: name: "Validate artifact structure" runs-on: ${{ github.repository_owner == 'ROCm' && inputs.build_runs_on || 'ubuntu-24.04' }} container: - image: python:3.12-slim + # https://hub.docker.com/_/python/tags?name=3.12-slim + image: python:3.12-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f env: ARTIFACT_GITHUB_REPO: ${{ inputs.artifact_github_repo }} ARTIFACT_RUN_ID: "${{ inputs.artifact_run_id != '' && inputs.artifact_run_id || github.run_id }}" diff --git a/.github/workflows/test_native_linux_packages_install.yml b/.github/workflows/test_native_linux_packages_install.yml index c6dc2029766..1cca0bf76dd 100644 --- a/.github/workflows/test_native_linux_packages_install.yml +++ b/.github/workflows/test_native_linux_packages_install.yml @@ -223,7 +223,9 @@ jobs: fail-fast: false runs-on: ${{ github.repository_owner == 'ROCm' && (inputs.test_runs_on || 'linux-gfx942-1gpu-ccs-csp-ossci-rocm') || 'ubuntu-24.04' }} container: - image: ${{ needs.prepare_install_context.outputs.container_image }} + # get_url_repo_params.py manages image references for each OS profile. + # zizmor cannot inspect the dynamically selected image. + image: ${{ needs.prepare_install_context.outputs.container_image }} # zizmor: ignore[unpinned-images] # GPU options from prepare_install_context — see comment there for why this # is dynamic across os_profile (multi-OS install matrix, SLES /etc/group). options: ${{ needs.prepare_install_context.outputs.container_gpu_options }} diff --git a/build_tools/packaging/linux/get_url_repo_params.py b/build_tools/packaging/linux/get_url_repo_params.py index 9e952d226dd..99e89bb16d1 100644 --- a/build_tools/packaging/linux/get_url_repo_params.py +++ b/build_tools/packaging/linux/get_url_repo_params.py @@ -555,6 +555,8 @@ def cmd_extract_gfx_arch(args: argparse.Namespace) -> int: # Maps OS profile prefixes to container images (checked in order; first match wins). # Single-profile entries (e.g. "rhel8") require an exact match so "rhel10" does not # match the "rhel8" prefix via startswith. +# TODO: Centralize these floating image references with the other consumers. +# See https://github.com/ROCm/TheRock/pull/7683 for example. _OS_PROFILE_TO_IMAGE: list[tuple[tuple[str, ...], str]] = [ (("sles",), "registry.suse.com/bci/bci-base:16.0"), (("ubuntu", "debian"), "ghcr.io/rocm/no_rocm_image_ubuntu24_04:latest"),