Skip to content

Commit

Permalink
Allow oscap-bootc to download remote resources
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Sturla <[email protected]>
  • Loading branch information
p5 committed Dec 11, 2024
1 parent b8d36be commit 490b3ce
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 490b3ce

Please sign in to comment.