Skip to content

Commit

Permalink
Merge pull request #2187 from p5/support-downloading-remote-files-bootc
Browse files Browse the repository at this point in the history
Allow oscap-bootc to download remote resources
  • Loading branch information
jan-cerny authored Dec 17, 2024
2 parents b8d36be + 490b3ce commit e90df48
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 e90df48

Please sign in to comment.