Skip to content

Commit ba70d33

Browse files
committed
added trivy.yaml
1 parent cb485e2 commit ba70d33

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

‎.github/workflows/trivy.yaml‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#
2+
# Author: Hari Sekhon
3+
# Date: Date: 2022-02-02 11:27:37 +0000 (Wed, 02 Feb 2022)
4+
#
5+
# vim:ts=2:sts=2:sw=2:et
6+
#
7+
# https://github.com/HariSekhon/SQL-scripts
8+
#
9+
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
10+
#
11+
# https://www.linkedin.com/in/HariSekhon
12+
#
13+
14+
# ============================================================================ #
15+
# T r i v y
16+
# ============================================================================ #
17+
18+
---
19+
name: Trivy
20+
21+
on:
22+
push:
23+
branches:
24+
- master
25+
- main
26+
paths-ignore:
27+
- '**/*.md'
28+
pull_request:
29+
branches:
30+
- master
31+
- main
32+
paths-ignore:
33+
- '**/*.md'
34+
workflow_dispatch:
35+
inputs:
36+
debug:
37+
type: boolean
38+
required: false
39+
default: false
40+
schedule:
41+
- cron: '0 0 * * 1'
42+
43+
permissions:
44+
actions: read
45+
contents: read
46+
security-events: write
47+
48+
concurrency:
49+
group: ${{github.ref }}-${{github.workflow }}
50+
cancel-in-progress: true
51+
52+
jobs:
53+
trivy:
54+
# github.event.repository context not available in scheduled workflows
55+
#if: github.event.repository.fork == false
56+
if: github.repository_owner == 'HariSekhon'
57+
name: Trivy Filesystem Scan
58+
uses: HariSekhon/GitHub-Actions/.github/workflows/trivy.yaml@master
59+
with:
60+
debug: ${{github.event.inputs.debug }}

0 commit comments

Comments
(0)