Skip to content

Instantly share code, notes, and snippets.

@jjtroberts
Created May 4, 2022 05:31
Show Gist options
  • Save jjtroberts/c8d8106f12c2ac1de2067a1a131baa4f to your computer and use it in GitHub Desktop.
Save jjtroberts/c8d8106f12c2ac1de2067a1a131baa4f to your computer and use it in GitHub Desktop.
OpenSCAP scanner setup on UBI8
#!/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