]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CI: fix scheduled fuzzer issues with pyOpenSSL
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Wed, 19 Apr 2023 11:19:23 +0000 (12:19 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Wed, 19 Apr 2023 11:20:10 +0000 (12:20 +0100)
Force install of new version of pyOpenSSL before PyGithub is
installed - that depends on a newer cryptography pkg which then
breaks everything with old pyOpenSSL.

https://github.com/pyca/pyopenssl/issues/1143

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

index 5e3e38fdf0cd430906ca41f8eed0fba6e3bb2269..441432672a7c9f45bf63cb28ce8897001c0a6448 100644 (file)
@@ -282,10 +282,16 @@ jobs:
     #  create the actual commit due to the "signed-commits" branch protection
     #  rule for the master branch.
     #
+    #  Force reinstall of pyOpenSSL is to work around Python
+    #  cryptograpy package issue - PyGithub pulls in a newer
+    #  version which clashes with older apt-installed pyOpenSSL
+    #  https://github.com/pyca/pyopenssl/issues/1143
+    #
     - name: Monthly push back of corpus
       run: |
         export FILE=src/tests/fuzzer-corpus/$PROTOCOL.tar
         if ! git diff --exit-code "$FILE"; then
+          sudo pip3 install --force-reinstall -I -U pyOpenSSL
           pip install PyGithub
           git add "$FILE"
           OID="$(git lfs ls-files -l -I "$FILE" | cut -f1 -d ' ')"