From f50d282872a9b786fa28e2127388e9676541a9ca Mon Sep 17 00:00:00 2001 From: HelixNebula <249811984+helixnebulatech@users.noreply.github.com> Date: Fri, 4 Dec 2026 04:00:23 +0100 Subject: [PATCH] ci: install hash-pinned dependencies in the signing steps (#17390) The two 'Sign rustdesk files' steps ran 'pip3 install requests argparse' unpinned, in the same step that passes SIGN_SECRET_KEY to res/job.py. argparse is part of the standard library; the PyPI package is an old, unneeded backport. Install requests and its dependencies from a hash-locked requirements file instead, as res/update already does for the update-metadata signing step. The versions support Python 3.9+. --- .github/requirements/sign-files.txt | 13 +++++++++++++ .github/workflows/flutter-build.yml | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .github/requirements/sign-files.txt diff --git a/.github/requirements/sign-files.txt b/.github/requirements/sign-files.txt new file mode 100644 index 000000000..f5cd90ec1 --- /dev/null +++ b/.github/requirements/sign-files.txt @@ -0,0 +1,13 @@ +# Locked, hash-checked dependencies of res/job.py for the release-signing steps. +# Install with: pip3 install --only-binary=:all: --require-hashes -r .github/requirements/sign-files.txt +# argparse is part of the standard library and must not be installed from PyPI. +requests==2.32.5 \ + --hash=sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6 +urllib3==2.6.3 \ + --hash=sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4 +idna==3.20 \ + --hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c +certifi==2026.10.23 \ + --hash=sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1 +charset-normalizer==3.5.2 \ + --hash=sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685 diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index c6e3f9011..4fbe6b848 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -468,7 +468,7 @@ jobs: if: env.UPLOAD_ARTIFACT == 'true' && env.SIGN_BASE_URL != '-2' shell: bash run: | - pip3 install requests argparse + pip3 install --only-binary=:all: --require-hashes -r .github/requirements/sign-files.txt BASE_URL=${{ env.SIGN_BASE_URL }} SECRET_KEY=${{ secrets.SIGN_SECRET_KEY }} python3 res/job.py sign_files ./rustdesk/ - name: Verify Windows Flutter version @@ -777,7 +777,7 @@ jobs: if: env.UPLOAD_ARTIFACT == 'true' && env.SIGN_BASE_URL != '-2' shell: bash run: | - pip3 install requests argparse + pip3 install --only-binary=:all: --require-hashes -r .github/requirements/sign-files.txt BASE_URL=${{ env.SIGN_BASE_URL }} SECRET_KEY=${{ secrets.SIGN_SECRET_KEY }} python3 res/job.py sign_files ./Release/ - name: Verify Windows Sciter version