Skip to content

Commit 65041aa

Browse files
authored
Create main.yml
1 parent eae4b56 commit 65041aa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: scan
2+
# This workflow represents a set of basic End-to-End tests
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
workflow_dispatch:
9+
jobs:
10+
job_id:
11+
name: "Scan Virus"
12+
runs-on: "ubuntu-latest"
13+
steps:
14+
- name: "Checkout Repository"
15+
uses: "actions/[email protected]"
16+
with:
17+
fetch-depth: 0
18+
- name: "Scan Repository"
19+
uses: "hugoalh/[email protected]"
20+
with:
21+
git_ignores: |-
22+
Param($GitCommitMeta)
23+
Return (
24+
$GitCommit.AuthorName -imatch '^dependabot' -or
25+
($GitCommit.AuthorDate -lt ([DateTime]::Parse('2022-01-01T00:00:00Z')) -and $GitCommit.AuthorName -imatch '^octocat$')
26+
)
27+
git_limit: 100
28+
ignores_pre: |-
29+
Param($ElementPreMeta)
30+
Return ($Meta.Path -imatch '^node_modules[\\/]'):
31+

0 commit comments

Comments
 (0)