Skip to content

Commit b8c21da

Browse files
committed
added grype.yaml
1 parent 9fe0d3c commit b8c21da

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/grype.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: 2023-05-13 01:07:56 +0100 (Sat, 13 May 2023)
4+
#
5+
# vim:ts=2:sts=2:sw=2:et
6+
#
7+
# https://github.com/HariSekhon/DevOps-Python-tools
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+
# G r y p e
16+
# ============================================================================ #
17+
18+
---
19+
name: Grype
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+
Grype:
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: Grype
58+
uses: HariSekhon/GitHub-Actions/.github/workflows/grype.yaml@master
59+
with:
60+
debug: ${{ github.event.inputs.debug }}

0 commit comments

Comments
 (0)