Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: scan
# This workflow represents a set of basic End-to-End tests
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
jobs:
job_id:
name: "Scan Virus"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout Repository"
uses: "actions/checkout@v4.0.0"
with:
fetch-depth: 0
- name: "Scan Repository"
uses: "hugoalh/scan-virus-ghaction@v0.20.0"
with:
git_ignores: |-
Param($GitCommitMeta)
Return (
$GitCommit.AuthorName -imatch '^dependabot' -or
($GitCommit.AuthorDate -lt ([DateTime]::Parse('2022-01-01T00:00:00Z')) -and $GitCommit.AuthorName -imatch '^octocat$')
)
git_limit: 100
ignores_pre: |-
Param($ElementPreMeta)
Return ($Meta.Path -imatch '^node_modules[\\/]'):