]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use a Python virtual env
authorNick Porter <nick@portercomputing.co.uk>
Thu, 3 Oct 2024 18:47:32 +0000 (19:47 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 3 Oct 2024 18:47:32 +0000 (19:47 +0100)
Ubuntu 24 really doesn't like running pip as root

.github/workflows/ci-scheduled-fuzzing.yml

index 78625faab1354f94144b6ffe67ca1c15b65891b4..8144008cdf70c53439350d24804fb8ef5c9705ce 100644 (file)
@@ -273,7 +273,10 @@ jobs:
       run: |
         export FILE=src/tests/fuzzer-corpus/$PROTOCOL.tar
         if ! git diff --exit-code "$FILE"; then
-          sudo pip3 install --force-reinstall -I -U pyOpenSSL
+          sudo apt-get install -y python3-venv
+          python3 -m venv ~/.venv
+          . ~/.venv/bin/activate
+          pip install --force-reinstall -I -U pyOpenSSL
           pip install PyGithub
           git add "$FILE"
           OID="$(git lfs ls-files -l -I "$FILE" | cut -f1 -d ' ')"