mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2026-05-07 03:54:18 +02:00
Update VT scan workflow
- Use v6.x for latest stable actions/checkout - Use v6.x for latest stable Go version - Add release line - Scan on push using rules Signed-off-by: nopeitsnothing <no@anonymousplanet.org>
This commit is contained in:
@@ -1,20 +1,24 @@
|
|||||||
name: '🦠 VirusTotal Scan'
|
name: '🦠 VirusTotal Scan'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
workflow_dispatch:
|
||||||
types: [published]
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- 'main'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: '📦 Checkout'
|
- name: '📦 Checkout'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: '📦 Set up Go'
|
- name: '📦 Set up Go'
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.26.2'
|
go-version: '1.26.2'
|
||||||
- run: go version
|
- run: go version
|
||||||
@@ -23,6 +27,7 @@ jobs:
|
|||||||
uses: crazy-max/ghaction-virustotal@v5
|
uses: crazy-max/ghaction-virustotal@v5
|
||||||
with:
|
with:
|
||||||
vt_api_key: ${{ secrets.VT_API_KEY }}
|
vt_api_key: ${{ secrets.VT_API_KEY }}
|
||||||
|
update_release_body: true
|
||||||
files: |
|
files: |
|
||||||
./export/thgtoa.pdf
|
./export/thgtoa.pdf
|
||||||
./export/thgtoa-dark.pdf
|
./export/thgtoa-dark.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user