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

As developer scanning with a profile, I want to immediately see if a profile is not available. #85

Open
gregelin opened this issue Dec 2, 2015 · 0 comments

Comments

@gregelin
Copy link
Contributor

gregelin commented Dec 2, 2015

Scanning should stop if profile non-existent.

The below is bad feedback bc it continues after failure.

[root@ip-172-30-0-247 myfisma]# govready scan
[GovReady] Using profile test.

Placing scan results in scans/test...
[GovReady] Scanning system for compliance to profile test
[GovReady] Running command: oscap xccdf eval --profile test --oval-results --cpe scap/content/ssg-amzn2014.03.2hvm-cpe-dictionary.xml --results scans/test/20151202-1326-results.xml --report scans/test/20151202-1326-results.html /usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
Profile "test" was not found.
[GovReady] ...
[GovReady] Generating fix.sh...
[GovReady] Running command: "oscap xccdf generate fix --result-id xccdf_org.open-scap_testresult_test scans/test/20151202-1326-results.xml > scans/test/20151202-1326-fix.sh"
#Warning: OpenSCAP will now use fallback mode (XSLT) to generate fixes. Some of the functionality might be missing (Text substitution, CPE processing, DataStream support, and tailoring). Please ommit --result-id option to trigger advanced processing.
I/O warning : failed to load external entity "scans/test/20151202-1326-results.xml"
OpenSCAP Error:: Could not parse the XML document 'scans/test/20151202-1326-results.xml' [oscapxml.c:429]
[GovReady] ...
[GovReady] Skipping variable export (tbd)...
[GovReady] ...
[GovReady] ...
[GovReady] Printing quickie report...
[GovReady] Running command: "xsltproc .govready/xml/scaninfo.xsl scans/test/results.xml"
warning: failed to load external entity "scans/test/results.xml"
unable to parse scans/test/results.xml
[GovReady] ...
View detailed HTML report: lynx scans/test/results.html
Run auto-generated fix file: govready fix 
@gregelin gregelin changed the title Need more abrupt notification for missing scan profile As developer scanning with a profile, I want to immediately see if a profile is not available. Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant