1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ # The default values used in the docker build commands are the root
7
+ # directory '.' and the dockerfile name of 'Dockerfile'. If there is
8
+ # a need to change these do so in your local workflow template (this file) and
9
+ # change them there. HINT: Look at the bottom of this file.
10
+
11
+ # This workflow checks out code, builds an image, performs a container image
12
+ # vulnerability scan with Anchore's Grype tool, and generates an
13
+ # SBOM via Anchore's Syft tool
14
+
15
+ # For more information on Anchore's container image scanning tool Grype, see
16
+ # https://github.com/anchore/grype
17
+
18
+ # For more information about the Anchore SBOM tool, Syft, see
19
+ # https://github.com/anchore/syft
20
+
21
+ name : ConsoleDot Platform Security Scan
22
+
23
+ on :
24
+ push :
25
+ branches : [ "master", "security-compliance" ]
26
+ pull_request :
27
+ # The branches below must be a subset of the branches above
28
+ branches : [ "master", "security-compliance" ]
29
+
30
+ jobs :
31
+ PlatSec-Security-Workflow :
32
+ uses : RedHatInsights/platform-security-gh-workflow/.github/workflows/platsec-security-scan-reusable-workflow.yml@master
33
+ # # The optional parameters below are used if you are using something other than the
34
+ # # the defaults of root '.' for the path and 'Dockerfile' for the Dockerfile name.
35
+ # # Additionally, if you have a Dockerfile you use as your BASE_IMG or you need to
36
+ # # use '--build-arg', those can be define below as well.
37
+
38
+ with :
39
+ # dockerfile_path: './test'
40
+ # dockerfile_name: 'Dockerfile.main'
41
+ base_image_build : true
42
+ # base_dockerfile_path: './test'
43
+ base_dockerfile_name : ' Dockerfile.base'
44
+ build_arg : ' --build-arg BASE_IMAGE="localbuild/baseimage:latest"'
0 commit comments