Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IaC Scan Runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIACERE
public
The Platform
IaC Scan Runner
Commits
a231ff5b
Commit
a231ff5b
authored
2 years ago
by
nenad.petrovic@xlab.si
Committed by
Mati(ja)c Cankar
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Result summarization fixes
parent
edb1a65e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/iac_scan_runner/compatibility.py
+1
-1
1 addition, 1 deletion
src/iac_scan_runner/compatibility.py
src/iac_scan_runner/results_summary.py
+16
-0
16 additions, 0 deletions
src/iac_scan_runner/results_summary.py
with
17 additions
and
1 deletion
src/iac_scan_runner/compatibility.py
+
1
−
1
View file @
a231ff5b
...
...
@@ -13,7 +13,7 @@ class Compatibility:
"
js
"
:
[
"
es-lint
"
,
"
ts-lint
"
],
"
html
"
:
[
"
htmlhint
"
],
"
docker
"
:
[
"
hadolint
"
],
"
other
"
:
[],
"
other
"
:
[
"
git-leaks
"
,
"
git-secrets
"
],
}
def
__init__
(
self
):
...
...
This diff is collapsed.
Click to expand it.
src/iac_scan_runner/results_summary.py
+
16
−
0
View file @
a231ff5b
...
...
@@ -87,6 +87,14 @@ class ResultsSummary:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Problems
"
return
"
Problems
"
elif
check
==
"
shellcheck
"
:
if
outcome
==
""
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Passed
"
return
"
Passed
"
else
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Problems
"
return
"
Problems
"
elif
check
==
"
es-lint
"
:
if
outcome
.
find
(
"
wrong
"
)
>-
1
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Problems
"
...
...
@@ -111,6 +119,14 @@ class ResultsSummary:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Problems
"
return
"
Problems
"
elif
check
==
"
bandit
"
:
if
outcome
.
find
(
"
No issues identified.
"
)
>-
1
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Passed
"
return
"
Passed
"
else
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Problems
"
return
"
Problems
"
elif
check
==
"
hadolint
"
:
if
outcome
==
""
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Passed
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment