hooks/install: use python3.8

We're upgrading python in boards to python3.11, but want to continue
using python3.8 in the SDK for now.

BUG=b/389105832
TEST=presubmit
RELEASE_NOTE=None

cos-patch: bug
Reviewed-on: https://cos-review.googlesource.com/c/third_party/platform/crosutils/+/94686
Reviewed-by: Kevin Berry <kpberry@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
(cherry picked from commit b50bd36dae23405dfcdcfaa9814c4bc9b149d811)
Change-Id: I7a508102ef192be260eab34746ba0358c1b0c716
Reviewed-on: https://cos-review.googlesource.com/c/third_party/platform/crosutils/+/95323
diff --git a/hooks/install/gen-package-licenses.sh b/hooks/install/gen-package-licenses.sh
index 062f57b..f793f07 100755
--- a/hooks/install/gen-package-licenses.sh
+++ b/hooks/install/gen-package-licenses.sh
@@ -12,7 +12,7 @@
   # Run FEATURES='noclean' emerge-x86-alex libc-bench to prevent having the
   # directory cleaned up if you are debugging.
   einfo "Generating license for ${PKG} in ${PORTAGE_BUILDDIR:-}"
-  python3 \
+  python3.8 \
   /mnt/host/source/chromite/licensing/ebuild_license_hook \
       --builddir "${PORTAGE_BUILDDIR}" || die "
 Failed Generating Licensing for ${PKG}
diff --git a/hooks/install/gen-sbom-package-info.py b/hooks/install/gen-sbom-package-info.py
index 39bbe1c..dd50c9a 100755
--- a/hooks/install/gen-sbom-package-info.py
+++ b/hooks/install/gen-sbom-package-info.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python3.8
 #
 # Copyright 2022 Google LLC
 #