mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
ff6a26dd42
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
metadata:
|
|
name: malwareExecuteScan
|
|
description: Performs a malware scan
|
|
longDescription: |
|
|
Performs a malware scan
|
|
spec:
|
|
inputs:
|
|
secrets:
|
|
- name: malwareScanCredentialsId
|
|
description: Jenkins 'Username with password' credentials ID containing the technical user/password credential used to communicate with the malwarescanning service.
|
|
type: jenkins
|
|
params:
|
|
- name: host
|
|
type: string
|
|
description: "malware scanning host."
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: true
|
|
- name: username
|
|
type: string
|
|
description: "User"
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: true
|
|
secret: true
|
|
resourceRef:
|
|
- name: malwareScanCredentialsId
|
|
type: secret
|
|
param: username
|
|
- name: malwareScanUsernameVaultSecretName
|
|
type: vaultSecret
|
|
default: malware-scan
|
|
- name: password
|
|
type: string
|
|
description: "Password"
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: true
|
|
secret: true
|
|
resourceRef:
|
|
- name: malwareScanCredentialsId
|
|
type: secret
|
|
param: password
|
|
- name: malwareScanPasswordVaultSecretName
|
|
type: vaultSecret
|
|
default: malware-scan
|
|
- name: file
|
|
type: string
|
|
description: "The file which is scanned for malware"
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: true
|
|
- name: timeout
|
|
type: string
|
|
description: "timeout for http layer in seconds"
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default: 600
|