File tree Expand file tree Collapse file tree
code-secure-api/code-secure-api/Application/Module/Ci/Command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ public class CreateCiScanCommand(AppDbContext context)
1717{
1818 public async Task < Result < CiScanInfo > > ExecuteAsync ( CiScanRequest request )
1919 {
20- Console . WriteLine ( "Current Commit: " + request . CommitHash ) ;
2120 if ( ( request . Type is ScannerType . Sast or ScannerType . Dependency or ScannerType . Secret ) == false )
2221 {
2322 return Result . Fail ( $ "Not implemented { request . Type . ToString ( ) } ") ;
@@ -118,7 +117,6 @@ public async Task<Result<CiScanInfo>> ExecuteAsync(CiScanRequest request)
118117 context . Scans . Update ( scan ) ;
119118 }
120119 await context . SaveChangesAsync ( ) ;
121- Console . WriteLine ( "Last Commit: " + lastCommitSha ) ;
122120 return new CiScanInfo
123121 {
124122 ScanId = scan . Id ,
Original file line number Diff line number Diff line change @@ -172,18 +172,6 @@ public async Task<Result<UploadCiFindingResponse>> ExecuteAsync(UploadCiFindingR
172172 }
173173 if ( request . Strategy == ScanStrategy . ChangedFileOnly )
174174 {
175-
176- request . ChangedFiles . ForEach ( file =>
177- {
178- if ( file . Status == ChangedFileStatus . Delete )
179- {
180- logger . LogInformation ( $ "[{ file . Status . ToString ( ) } ] { file . From } ") ;
181- }
182- else
183- {
184- logger . LogInformation ( $ "[{ file . Status . ToString ( ) } ] { file . To } ") ;
185- }
186- } ) ;
187175 var deletedFiles = request . ChangedFiles
188176 . Where ( x => x . Status == ChangedFileStatus . Delete )
189177 . Select ( x => x . From ) . ToHashSet ( ) ;
You can’t perform that action at this time.
0 commit comments