Created
May 4, 2022 05:31
-
-
Save jjtroberts/c8d8106f12c2ac1de2067a1a131baa4f to your computer and use it in GitHub Desktop.
OpenSCAP scanner setup on UBI8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
dnf install -y openscap-scanner bzip2 wget unzip && \ | |
wget https://github.com/ComplianceAsCode/content/releases/download/v0.1.61/scap-security-guide-0.1.61-oval-5.10.zip && \ | |
unzip scap-security-guide-0.1.61-oval-5.10.zip && \ | |
oscap xccdf eval \ | |
--verbose ERROR \ | |
--fetch-remote-resources \ | |
--profile "xccdf_org.ssgproject.content_profile_stig" \ | |
--results compliance_output_report.xml \ | |
--report report.html "scap-security-guide-0.1.61-oval-5.10/ssg-rhel8-ds.xml" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment