Skip to content

Commit e58bd1c

Browse files
committed
add action
1 parent 8a05218 commit e58bd1c

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: VirusTotal Scan
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- plugins/**
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
# - name: Set up Go
17+
# uses: actions/setup-go@v4
18+
19+
- name: Download All Plugins
20+
run: |
21+
pip install -r ci/envs/requirements-virustotal-setup.txt
22+
python ./ci/src/ci/src/virustotal_setup.py
23+
24+
- name: VirusTotal Scan
25+
uses: crazy-max/ghaction-virustotal@v4
26+
with:
27+
# vt_api_key: ${{ secrets.VT_API_KEY }}
28+
files: |
29+
./VirusTotal_Tests/

ci/src/virustotal_setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ def setup_virustotal_scan_items(github_token: str = "") -> None:
1616

1717
if __name__ == "__main__":
1818
github_token = str(sys.argv[1]) if len(sys.argv) > 1 else ""
19+
if not github_token:
20+
print("Not using token")
1921
setup_virustotal_scan_items(github_token)

0 commit comments

Comments
 (0)