Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow oscap-bootc to download remote resources #2187

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions utils/oscap-bootc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def parse_args():
"data_stream", metavar="DATA_STREAM",
help="Path to a SCAP source data stream, eg. "
"/usr/share/xml/scap/ssg/content/ssg-rhel10-ds.xml")
parser.add_argument(
"--fetch-remote-resources", action="store_true",
help="Fetch remote resources referenced in the XCCDF content")
# Unfortunately, we can't add "--rule", "--skip-rule", or "--reference"
# because the "oscap xccdf generate fix" submodule doesn't support these
# options.
Expand Down Expand Up @@ -88,6 +91,8 @@ def add_common_args(args, cmd):
("--tailoring-id", args.tailoring_id)
]
add_args(oal, cmd)
if args.fetch_remote_resources:
cmd.append("--fetch-remote-resources")


def add_eval_args(args, cmd):
Expand Down