diff --git a/app/assets/javascripts/security_configuration/components/app.vue b/app/assets/javascripts/security_configuration/components/app.vue index 9e90d619d12919df4f26473d96d04115602d88df..a67a945d720b553b1cd0de3d67ff6f1f852b9591 100644 --- a/app/assets/javascripts/security_configuration/components/app.vue +++ b/app/assets/javascripts/security_configuration/components/app.vue @@ -10,6 +10,7 @@ import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import { SERVICE_PING_SECURITY_CONFIGURATION_THREAT_MANAGEMENT_VISIT } from '~/tracking/constants'; import { REPORT_TYPE_CONTAINER_SCANNING_FOR_REGISTRY } from '~/vue_shared/security_reports/constants'; import BetaBadge from '~/vue_shared/components/badges/beta_badge.vue'; +import { helpPagePath } from '~/helpers/help_page_helper'; import { AUTO_DEVOPS_ENABLED_ALERT_DISMISSED_STORAGE_KEY, TAB_VULNERABILITY_MANAGEMENT_INDEX, @@ -24,6 +25,7 @@ import FeatureCard from './feature_card.vue'; import PipelineSecretDetectionFeatureCard from './pipeline_secret_detection_feature_card.vue'; import SecretPushProtectionFeatureCard from './secret_push_protection_feature_card.vue'; import TrainingProviderList from './training_provider_list.vue'; +import RefTrackingList from './ref_tracking_list.vue'; export default { i18n, @@ -49,6 +51,7 @@ export default { import('ee_component/security_configuration/components/upgrade_banner.vue'), UserCalloutDismisser, TrainingProviderList, + RefTrackingList, ContainerScanningForRegistryFeatureCard: () => import( 'ee_component/security_configuration/components/container_scanning_for_registry_feature_card.vue' @@ -124,11 +127,19 @@ export default { shouldShowVulnerabilityArchives() { return this.glFeatures?.vulnerabilityArchival; }, + shouldShowRefsTracking() { + return this.glFeatures?.vulnerabilitiesAcrossContexts; + }, shouldShowSecurityAttributes() { return ( window.gon?.licensed_features?.securityAttributes && this.glFeatures?.securityContextLabels ); }, + trackedRefsHelpPagePath() { + // Once the help page content is available, we can use the anchor to link to the specific section + // See issue: https://gitlab.com/gitlab-org/gitlab/-/issues/578081 + return helpPagePath('user/application_security/vulnerability_report/_index.md'); + }, }, methods: { getComponentName(feature) { @@ -262,7 +273,40 @@ export default { :title="$options.i18n.vulnerabilityManagement" query-param-value="vulnerability-management" > - + + + + +