Skip to content

Commit 7b57d87

Browse files
CI: Add VirusTotal scan results
1 parent 724ddc8 commit 7b57d87

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/main-1.0.0.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,31 @@ jobs:
4343
with:
4444
name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}"
4545
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;
4671
- name: Move canary tag to this commit
4772
uses: richardsimko/update-tag@v1
4873
if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'true' && success()
@@ -64,6 +89,9 @@ jobs:
6489
6590
This is a canary build. Please be aware it may be prone to crashing and is NOT tested by anyone.
6691
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 }}
6795
- name: Publish Stable release
6896
uses: ncipollo/release-action@v1
6997
if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'false' && success()
@@ -75,6 +103,9 @@ jobs:
75103
name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}"
76104
body: |
77105
See https://github.com/julianxhokaxhiu/SummonKit/blob/master/Changelog.md#${{ env._CHANGELOG_VERSION }}
106+
107+
🛡️ **VirusTotal analysis:**
108+
${{ steps.vt-res.outputs.result }}
78109
- name: Publish appcast to GitHub Pages
79110
if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'false' && success()
80111
run: |

0 commit comments

Comments
 (0)