mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
44 lines
994 B
YAML
44 lines
994 B
YAML
---
|
|
name: Upload VirusTotal
|
|
|
|
on:
|
|
release:
|
|
types: [released]
|
|
workflow_dispatch:
|
|
inputs:
|
|
salt-version:
|
|
type: string
|
|
required: true
|
|
description: >
|
|
The Salt version to get from staging to upload to VirusTotal.
|
|
(DO NOT prefix the version with a v, ie, 3006.0 NOT v3006.0).
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
upload-virustotal:
|
|
name: Upload VirusTotal
|
|
environment: release
|
|
runs-on:
|
|
- self-hosted
|
|
- linux
|
|
- repo-release
|
|
steps:
|
|
|
|
- name: Checkout Salt
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set Up Python 3.10
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- name: Setup Python Tools Scripts
|
|
uses: ./.github/actions/setup-python-tools-scripts
|
|
|
|
- name: Upload to VirusTotal
|
|
env:
|
|
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}
|
|
run: |
|
|
tools release upload-virustotal ${{ inputs.salt-version || github.ref_name }}
|