reframe
reframe copied to clipboard
[testlib] Add trivy scan hpctestlib
The test scans the file systems using aquasecurity/triyv (https://github.com/aquasecurity/trivy)
The test uses the fs option and test against three different scanners vuln, config, and secret.
Codecov Report
All modified lines are covered by tests :white_check_mark:
Comparison is base (
38cc61a
) 87.35% compared to head (a0e72dc
) 86.67%. Report is 98 commits behind head on develop.
:exclamation: Current head a0e72dc differs from pull request most recent head b458bb6. Consider uploading reports for the commit b458bb6 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## develop #2959 +/- ##
===========================================
- Coverage 87.35% 86.67% -0.69%
===========================================
Files 60 61 +1
Lines 11683 11986 +303
===========================================
+ Hits 10206 10389 +183
- Misses 1477 1597 +120
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hello @victorusu, Thank you for updating!
- In the file
hpctestlib/system/fs/trivy_scan.py
:
Line 101:32: E127 continuation line over-indented for visual indent Line 123:80: E501 line too long (80 > 79 characters) Line 167:80: E501 line too long (80 > 79 characters) Line 185:16: E713 test for membership should be 'not in' Line 247:80: E501 line too long (80 > 79 characters) Line 260:80: E501 line too long (80 > 79 characters)
Do see the ReFrame Coding Style Guide