-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
52 lines (49 loc) · 1.8 KB
/
action.yml
File metadata and controls
52 lines (49 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: attachmentAV Malware Scanner
description: Scan files for malware and viruses using the attachmentAV API
branding:
icon: search
color: purple
inputs:
local-file-path:
description: Path to local file in the repository to scan - supports up to 100MB (mutually exclusive with artifact-id and release-asset-id)
required: false
artifact-id:
description: GitHub Actions artifact ID to scan (mutually exclusive with local-file-path and release-asset-id)
required: false
release-asset-id:
description: GitHub release asset ID to scan (mutually exclusive with local-file-path and artifact-id)
required: false
api-endpoint:
description: attachmentAV API endpoint
required: false
default: 'https://eu.developer.attachmentav.com'
api-key:
description: attachmentAV API key (use secrets)
required: true
token:
description: GitHub token or personal access token (PAT) - required for artifacts, local files >10MB and releases of private repositories (forwarded to attachmentAV for download authentication)
required: false
timeout:
description: Timeout in seconds for async polling. Max 1 hour, min 1 second.
required: false
default: '300'
polling-interval:
description: Polling interval in seconds for async scans. Max 1 hour, min 1 second.
required: false
default: '5'
fail-on-infected:
description: Whether to fail the action if malware is detected
required: false
default: 'true'
outputs:
status:
description: Scan result status (clean/infected/no)
finding:
description: Malware type, not set if status is 'clean'
file-size:
description: Size of scanned file in bytes, not set if scanning failed
real-file-type:
description: Detected file type, not set if scanning failed
runs:
using: node24
main: dist/index.mjs