File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 env :
3636 GH_TOKEN : ${{ github.token }}
3737 RELEASE : ${{ inputs.release }}
38- run : ./download-release.sh
38+ run : |
39+ ./download-release.sh
40+ echo "RELEASE=$RELEASE" >> $GITHUB_ENV
3941
4042 - name : Setup Python
4143 uses : actions/setup-python@v5
6466 vtscan-results-all.json
6567 vtscan-results-warnings.json
6668
67- # - name: Post message
68- # uses: slackapi/slack-github-action@v2.0.0
69- # with:
70- # method: chat.postMessage
71- # token: ${{ secrets.SLACK_BOT_TOKEN }}
72- # payload: |
73- # channel: ${{ secrets.SLACK_CHANNEL_ID }}
74- # text: "${{ env.SCAN_STATUS }}"
75-
7669 upload :
7770 # Making it a standalone job to limit its security perimeter
7871 runs-on : ubuntu-latest
@@ -95,10 +88,15 @@ jobs:
9588 - name : Commit scan results
9689 shell : bash
9790 run : |
91+ mv vtscan-results-all.json "vt-scan-results/$RELEASE-all.json"
92+ mv vtscan-results-warning.json "vt-scan-results/$RELEASE-warning.json"
93+
94+ python3 html.py > index.html
95+
9896 git config --local user.email "github-actions[bot]@users.noreply.github.com"
9997 git config --local user.name "github-actions[bot]"
10098 git add .
101- git commit -a -m "VT scan results"
99+ git commit -a -m "Updated VT scan results"
102100
103101 - name : Push changes
104102 uses : ad-m/github-push-action@master
Original file line number Diff line number Diff line change 3333 echo " Release variable is specified"
3434fi
3535
36+ export RELEASE
37+
3638echo " Downloading binaries for release $RELEASE to $( pwd) "
3739
3840gh release download " $RELEASE " --clobber --dir " $OUTPUT " --pattern " *.exe" --repo " $REPO "
Original file line number Diff line number Diff line change 1+ import datetime
2+ import os
3+
4+ if __name__ == '__main__' :
5+ print ('<h1>VirusTotal scan results for <a href="https://flowkeeper.org">Flowkeeper</a></h1>' )
6+ print ('<ul>' )
7+ for f in os .listdir ('vt-scan-results' ):
8+ if f .endswith ('.json' ):
9+ print (f'<li><a href="vt-scan-results/{ f } ">{ f } </a></li>' )
10+ print ('</ul>' )
11+ print (f'<p>Last update: { datetime .datetime .now (tz = datetime .timezone .utc )} </p>' )
Original file line number Diff line number Diff line change 1+ aa
You can’t perform that action at this time.
0 commit comments