mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-14 08:41:28 +00:00
Bumps the github-actions group with 3 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact), [actions/download-artifact](https://github.com/actions/download-artifact) and [actions/stale](https://github.com/actions/stale). Updates `actions/upload-artifact` from 6.0.0 to 7.0.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](b7c566a772...bbbca2ddaa) Updates `actions/download-artifact` from 7.0.0 to 8.0.0 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](37930b1c2a...70fc10c6e5) Updates `actions/stale` from 10.1.1 to 10.2.0 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](997185467f...b5d41d4e1d) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/download-artifact dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/stale dependency-version: 10.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
100 lines
3.1 KiB
YAML
100 lines
3.1 KiB
YAML
name: AntiVirus Whitelisting
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
url:
|
|
description: "Url to the file to upload"
|
|
required: true
|
|
type: string
|
|
avast:
|
|
description: "Upload to Avast"
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
kaspersky:
|
|
description: "Upload to Kaspersky"
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
workflow_dispatch:
|
|
inputs:
|
|
url:
|
|
description: "Url to the file to upload"
|
|
required: true
|
|
type: string
|
|
avast:
|
|
description: "Upload to Avast"
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
kaspersky:
|
|
description: "Upload to Kaspersky"
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
|
|
jobs:
|
|
download-file:
|
|
name: Downloads the file into the VM
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
fileName: ${{ steps.extractName.outputs.fileName}}
|
|
env:
|
|
INPUT_URL: ${{ inputs.url }}
|
|
steps:
|
|
- name: Extract file name
|
|
id: extractName
|
|
run: |
|
|
url="${INPUT_URL}"
|
|
echo "fileName=${url##*/}" >> $GITHUB_OUTPUT
|
|
- name: Download file
|
|
run: curl --silent --fail-with-body --proto "=https" -L "${INPUT_URL}" -o "${{steps.extractName.outputs.fileName}}"
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: ${{ steps.extractName.outputs.fileName }}
|
|
path: ${{ steps.extractName.outputs.fileName }}
|
|
if-no-files-found: error
|
|
allowlist-kaspersky:
|
|
name: Anti Virus Allowlisting Kaspersky
|
|
runs-on: ubuntu-latest
|
|
needs: download-file
|
|
if: inputs.kaspersky
|
|
steps:
|
|
- name: Download artifact
|
|
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
|
|
with:
|
|
name: ${{ needs.download-file.outputs.fileName }}
|
|
path: upload
|
|
- name: Upload to Kaspersky
|
|
uses: SamKirkland/FTP-Deploy-Action@a51268f67f6605236975928ae28b0f7e9971d50a # v4.6.3
|
|
with:
|
|
protocol: ftps
|
|
server: allowlist.kaspersky-labs.com
|
|
port: 990
|
|
username: ${{ secrets.ALLOWLIST_KASPERSKY_USERNAME }}
|
|
password: ${{ secrets.ALLOWLIST_KASPERSKY_PASSWORD }}
|
|
local-dir: ./upload/
|
|
allowlist-avast:
|
|
name: Anti Virus Allowlisting Avast
|
|
runs-on: ubuntu-latest
|
|
needs: download-file
|
|
if: inputs.avast
|
|
steps:
|
|
- name: Download artifact
|
|
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
|
|
with:
|
|
name: ${{ needs.download-file.outputs.fileName }}
|
|
path: upload
|
|
- name: Upload to Avast
|
|
uses: wlixcc/SFTP-Deploy-Action@a5ccb9c6211a94cc59404f0fdb2a9936a6dfee64 # v1.2.6
|
|
with:
|
|
server: whitelisting.avast.com
|
|
port: 22
|
|
username: ${{ secrets.ALLOWLIST_AVAST_USERNAME }}
|
|
password: ${{ secrets.ALLOWLIST_AVAST_PASSWORD }}
|
|
ssh_private_key: ''
|
|
sftp_only: true
|
|
local_path: './upload/*'
|
|
remote_path: '/data' |