|
43 | 43 | with: |
44 | 44 | name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}" |
45 | 45 | path: "dist/*.dmg" |
| 46 | + - name: VirusTotal Scan |
| 47 | + id: vt-scan |
| 48 | + if: env._IS_GITHUB_RELEASE == 'true' && success() |
| 49 | + uses: crazy-max/ghaction-virustotal@v4 |
| 50 | + with: |
| 51 | + vt_api_key: ${{ secrets._VT_API_KEY }} |
| 52 | + files: "dist/*.dmg" |
| 53 | + - name: Parse VirusTotal Results |
| 54 | + id: vt-res |
| 55 | + if: env._IS_GITHUB_RELEASE == 'true' && success() |
| 56 | + uses: actions/github-script@v7 |
| 57 | + with: |
| 58 | + result-encoding: string |
| 59 | + script: | |
| 60 | + let ret = `${{ steps.vt-scan.outputs.analysis }}`; |
| 61 | +
|
| 62 | + ret = '- ' + ret |
| 63 | + .replaceAll('dist/','') |
| 64 | + .replaceAll('=h', ': h') |
| 65 | + .replaceAll(',', "\n- "); |
| 66 | +
|
| 67 | + console.log('Results:'); |
| 68 | + console.log(ret); |
| 69 | +
|
| 70 | + return ret; |
46 | 71 | - name: Move canary tag to this commit |
47 | 72 | uses: richardsimko/update-tag@v1 |
48 | 73 | if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'true' && success() |
|
64 | 89 |
|
65 | 90 | This is a canary build. Please be aware it may be prone to crashing and is NOT tested by anyone. |
66 | 91 | The App is NOT signed. You need to allow it to run in your Gatekeeper settings panel. Use this build AT YOUR OWN RISK! |
| 92 | +
|
| 93 | + 🛡️ **VirusTotal analysis:** |
| 94 | + ${{ steps.vt-res.outputs.result }} |
67 | 95 | - name: Publish Stable release |
68 | 96 | uses: ncipollo/release-action@v1 |
69 | 97 | if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'false' && success() |
|
75 | 103 | name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}" |
76 | 104 | body: | |
77 | 105 | See https://github.com/julianxhokaxhiu/SummonKit/blob/master/Changelog.md#${{ env._CHANGELOG_VERSION }} |
| 106 | +
|
| 107 | + 🛡️ **VirusTotal analysis:** |
| 108 | + ${{ steps.vt-res.outputs.result }} |
78 | 109 | - name: Publish appcast to GitHub Pages |
79 | 110 | if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'false' && success() |
80 | 111 | run: | |
|
0 commit comments