Skip to content
Snippets Groups Projects

Adherence check - Static Application Security Testing (SAST)

Merged Hitesh Raghuvanshi requested to merge 440722-sast-adherence into master
All threads resolved!
1 file
+ 1
11
Compare changes
  • Side-by-side
  • Inline
@@ -13,19 +13,9 @@ def track_artifact_uploader(artifact)
super
return unless artifact.file_type == 'metrics' || artifact.file_type == 'sast'
if artifact.file_type == 'sast'
# ::Gitlab::AppLogger.info(
# message: "Raghu project id: #{project&.id} user id: #{current_user&.id}",
# reason: 'Identity verification required',
# class: self.class.name,
# username: current_user.username
# )
# ::Gitlab::AppLogger.info("Raghu Logging in create service for sast")
if artifact.file_type == 'sast' && artifact.job.pipeline.ref == artifact.project.default_branch
::ComplianceManagement::Standards::Gitlab::SastWorker
.perform_async({ 'project_id' => project.id, 'user_id' => job.user_id })
# ::ComplianceManagement::Standards::Gitlab::SastWorker
# .perform_async({ 'project_id' => 31, 'user_id' => 1 })
else
track_usage_event(METRICS_REPORT_UPLOAD_EVENT_NAME, job.user_id)
end
Loading