pepabo / control-controls

control-controls control controls of AWS Security Hub across all regions.
MIT License
10 stars 3 forks source link

Support notification #18

Closed k1LoW closed 2 years ago

k1LoW commented 2 years ago

Provide a notification mechanism when the status of Security Hub findings matches the condition.

github-actions[bot] commented 2 years ago

Code Metrics Report

main (6e16aa1) #18 (27c89e8) +/-
Coverage 36.4% 40.2% +3.8%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Test Execution Time 50s 1m11s +21s
Details ``` diff | | main (6e16aa1) | #18 (27c89e8) | +/- | |---------------------|----------------|---------------|-------| + | Coverage | 36.4% | 40.2% | +3.8% | | Files | 6 | 7 | +1 | | Lines | 593 | 657 | +64 | + | Covered | 216 | 264 | +48 | + | Code to Test Ratio | 1:0.4 | 1:0.4 | +0.0 | | Code | 1384 | 1688 | +304 | + | Test | 555 | 680 | +125 | - | Test Execution Time | 50s | 1m11s | +21s | ```

Code coverage of files in pull request scope (29.0% → 34.7%)

Files Coverage +/-
sechub/apply.go 0.0% 0.0%
sechub/fetch.go 0.0% 0.0%
sechub/notify.go 81.8% +81.8%
sechub/plan.go 0.0% 0.0%
sechub/sechub.go 58.2% -1.0%

Reported by octocov

github-actions[bot] commented 2 years ago

Code Metrics Report

main (6e16aa1) #18 (71d86c3) +/-
Coverage 36.4% 40.2% +3.8%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Test Execution Time 50s 54s +4s
Details ``` diff | | main (6e16aa1) | #18 (71d86c3) | +/- | |---------------------|----------------|---------------|-------| + | Coverage | 36.4% | 40.2% | +3.8% | | Files | 6 | 7 | +1 | | Lines | 593 | 657 | +64 | + | Covered | 216 | 264 | +48 | + | Code to Test Ratio | 1:0.4 | 1:0.4 | +0.0 | | Code | 1384 | 1688 | +304 | + | Test | 555 | 682 | +127 | - | Test Execution Time | 50s | 54s | +4s | ```

Code coverage of files in pull request scope (29.0% → 34.7%)

Files Coverage +/-
sechub/apply.go 0.0% 0.0%
sechub/fetch.go 0.0% 0.0%
sechub/notify.go 81.8% +81.8%
sechub/plan.go 0.0% 0.0%
sechub/sechub.go 58.2% -1.0%

Reported by octocov

github-actions[bot] commented 2 years ago

Code Metrics Report

main (6e16aa1) #18 (4987126) +/-
Coverage 36.4% 40.6% +4.1%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Test Execution Time 50s 1m47s +57s
Details ``` diff | | main (6e16aa1) | #18 (4987126) | +/- | |---------------------|----------------|---------------|-------| + | Coverage | 36.4% | 40.6% | +4.1% | | Files | 6 | 7 | +1 | | Lines | 593 | 663 | +70 | + | Covered | 216 | 269 | +53 | + | Code to Test Ratio | 1:0.4 | 1:0.4 | +0.0 | | Code | 1384 | 1697 | +313 | + | Test | 555 | 689 | +134 | - | Test Execution Time | 50s | 1m47s | +57s | ```

Code coverage of files in pull request scope (31.2% → 36.4%)

Files Coverage +/-
sechub/apply.go 0.0% 0.0%
sechub/fetch.go 0.0% 0.0%
sechub/notify.go 81.7% +81.7%
sechub/plan.go 0.0% 0.0%
sechub/sechub.go 58.2% -1.0%
sechub/yaml.go 45.8% +0.8%

Reported by octocov