Skip to content

Commit

Permalink
Enable GH Jenkins Security Scan Job
Browse files Browse the repository at this point in the history
  • Loading branch information
casey-williams-rh authored and jdobes committed Jun 17, 2024
1 parent 34208ee commit 7e618e9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions security-scan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

###########################
# This script sources the security-scan.sh script from
# https://github.com/RedHatInsights/platform-security-gh-workflow
# This script, in combination with Jenkins, scans a repo's Dockerfile
# to provide a Software Bill of Materials (SBOM) and scan security vulnerabilities.
###########################

set -exv

IMAGE_NAME="vulnerability-engine"
DOCKERFILE_LOCATION="."

# (Severity Options: negligible, low, medium, high, critical)
FAIL_ON_SEVERITY="high"

# Build on "podman" or "docker"
PODMAN_OR_DOCKER="podman"

curl -sSL https://raw.githubusercontent.com/RedHatInsights/platform-security-gh-workflow/master/jenkins/security-scan.sh | \
sh -s "${IMAGE_NAME}" "${DOCKERFILE_LOCATION}" "${FAIL_ON_SEVERITY}" "${PODMAN_OR_DOCKER}"

0 comments on commit 7e618e9

Please sign in to comment.