Adherence check - Static Application Security Testing (SAST)
All threads resolved!
This MR adds adherence check whenever a SAST scan runs on the default branch of a repository.
sast
and if the pipeline of the artifact belongs to the default branch of the repository then create the adherence check for the scan.Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
test-group
.Feature.enable(:enable_adherence_check_for_scanners)
in the rails console.Projects::ComplianceStandards::Adherence.where(project_id: <project_id>).last
in the rails console.Projects::ComplianceStandards::Adherence.where(project_id: <project_id>).last
in rails console, the updated_at
time should be same before the pipeline of merge request starts, which means the adherence check should not be created or updated for non-default branches.updated_at
time should get updated.mutation runStandardsAdherenceChecks {
refreshStandardsAdherenceChecks(input: {groupPath: "pipeline_testing"}) {
adherenceChecksStatus {
startedAt,
totalChecks,
checksCompleted
}
}
}
Related to #440722 (closed)