We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Need to determine the directory name where to output the skeleton profile based on the STIG or CIS XCCDF benchmark file.
logger.info(`Processing Benchmark Type: ${(benchmarkType === 'cis') ? 'CIS' : 'STIG'}`)
const isSTIG = (_.get(xmlDoc, 'xccdf:Benchmark.xccdf:title.#text') === undefined) logger.info(`Processing Benchmark Type: ${(isSTIG) ? 'STIG' : 'CIS'}`) if (flags.output === 'profile') { const benchmarkTitle = isSTIG ? _.get(xmlDoc, 'Benchmark.title') : _.get(xmlDoc, 'xccdf:Benchmark.xccdf:title.#text') outDir = (benchmarkTitle === undefined) ? flags.output : benchmarkTitle.replace('Security Technical Implementation Guide', 'stig-baseline').replaceAll(' ', '-').toLowerCase() } else { outDir = flags.output }
const readmeObj = (isSTIG) ? getDISAReadmeContent(xmlDoc) : getCISReadmeContent(xmlDoc)
Note
All code block numbers are for the current code before any replacements of code.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Need to determine the directory name where to output the skeleton profile based on the STIG or CIS XCCDF benchmark file.
Note
All code block numbers are for the current code before any replacements of code.
The text was updated successfully, but these errors were encountered: