Repository: zhmcclient/zhmc-prometheus-exporter (language: python)

Issue:
Fixed safety issues from 2023-09-26; Moved 'make safety' to end of tests
No review needed.


Discussion / hints:

Fix patch:
diff --git a/.safety-policy.yml b/.safety-policy.yml
index 64314938..15da39e7 100644
--- a/.safety-policy.yml
+++ b/.safety-policy.yml
@@ -54,6 +54,8 @@ security:
             reason: Fixed pygments version 2.15.0 requires Python>=3.7 and is used there
         59956:
             reason: Fixed certifi version 2023.07.22 requires Python>=3.6 and is used there
+        60350:
+            reason: Fixed GitPython version 3.1.32 requires Python>=3.7 and is used there
 
     # Continue with exit code 0 when vulnerabilities are found.
     continue-on-vulnerability-error: False


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ddbd27d2..e59fc82f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -195,11 +195,6 @@ jobs:
       run: |
         echo "Package dependency tree of installed Python packages:"
         pipdeptree --all
-    - name: Run safety
-      env:
-        PACKAGE_LEVEL: ${{ matrix.package_level }}
-      run: |
-        make safety
     - name: Run check_reqs
       env:
         PACKAGE_LEVEL: ${{ matrix.package_level }}
@@ -242,6 +237,11 @@ jobs:
         COVERALLS_SERVICE_NUMBER: "${{ github.workflow }}-${{ github.run_number }}"
       run: |
         if ! [[ ${{ matrix.python-version }} =~ (3.4) ]]; then coveralls; fi
+    - name: Run safety
+      env:
+        PACKAGE_LEVEL: ${{ matrix.package_level }}
+      run: |
+        make safety
 
   test_finish:
     needs: test