-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (58 loc) · 1.6 KB
/
scan-virus.yml
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
53
54
55
56
57
58
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Scan Virus"
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
types:
- "edited"
- "opened"
- "reopened"
- "synchronize"
workflow_dispatch:
inputs:
git_integrate:
type: "choice"
description: "{Boolean} Whether to integrate with Git to perform scan by every commits."
required: false
default: "False"
options:
- "False"
- "True"
git_limit:
type: "string"
description: "{UInt64} Limit on how many Git commits will scan."
required: false
default: "0"
git_reverse:
type: "choice"
description: "{Boolean} Whether to reverse the scan order of the Git commits."
required: false
default: "False"
options:
- "False"
- "True"
jobs:
main:
permissions:
contents: "read"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout Repository"
uses: "actions/[email protected]"
with:
fetch-depth: "0"
- name: "Scan Repository"
uses: "hugoalh/scan-virus-ghaction/[email protected]"
with:
git_integrate: "${{github.event.inputs.git_integrate || 'False'}}"
git_limit: "${{github.event.inputs.git_limit || '0'}}"
git_reverse: "${{github.event.inputs.git_reverse || 'False'}}"
ignores_post: |-
Param($ElementPostMeta)
Return (
$ElementPostMeta.Path -imatch '^node_modules[\\/]'
)