|
43 | 43 | matrix: |
44 | 44 | # It is recommended to pin a Runner version specifically: |
45 | 45 | # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners |
46 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
| 46 | + #os: [ubuntu-latest, macos-latest, windows-latest] |
| 47 | + os: [ubuntu-latest] |
47 | 48 | python: ['3.9', '3.10'] |
48 | 49 | steps: |
49 | 50 |
|
@@ -74,13 +75,27 @@ jobs: |
74 | 75 |
|
75 | 76 | # Audit all currently installed packages for security vulnerabilities. |
76 | 77 | - name: Audit installed packages |
77 | | - run: make audit |
| 78 | + id: audit-packages |
| 79 | + continue-on-error: true |
| 80 | + run: make --silent audit > vulnerabilities.txt |
| 81 | + |
| 82 | + # Upload the vulnerabilities file output. |
| 83 | + - name: Upload Artifact |
| 84 | + id: upload-audit-artifact |
| 85 | + uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb #v3.1.1 |
| 86 | + with: |
| 87 | + name: vulnerabilities.txt |
| 88 | + path: . |
| 89 | + if-no-files-found: error |
| 90 | + retention-days: 1 |
| 91 | + #if: steps.audit-packages.outputs.exit_code == 1 |
78 | 92 |
|
79 | 93 | # Build the sdist and wheel distribution of the package and docs as a zip file. |
80 | 94 | # We don't need to check and test the package separately because `make dist` runs |
81 | 95 | # those targets first and only builds the package if they succeed. |
82 | 96 | - name: Build the package |
83 | 97 | run: make dist |
| 98 | + continue-on-error: true |
84 | 99 |
|
85 | 100 | # Generate the requirements.txt that contains the hash digests of the dependencies and |
86 | 101 | # generate the SBOM using CyclonDX SBOM generator. |
|
0 commit comments