diff --git a/qa/qa/specs/features/ee/browser_ui/13_secure/enable_scanning_from_configuration_spec.rb b/qa/qa/specs/features/ee/browser_ui/13_secure/enable_scanning_from_configuration_spec.rb
index 089b1f61070e7b76cd389ef57ff80d9160dd75fc..4349fb32ead4b232b33287cbcc3d6df3e166230f 100644
--- a/qa/qa/specs/features/ee/browser_ui/13_secure/enable_scanning_from_configuration_spec.rb
+++ b/qa/qa/specs/features/ee/browser_ui/13_secure/enable_scanning_from_configuration_spec.rb
@@ -1,8 +1,12 @@
 # frozen_string_literal: true
 
 module QA
-  RSpec.describe 'Secure', product_group: :static_analysis do
-    context 'Enable Scanning from UI' do
+  RSpec.describe 'Secure', product_group: :static_analysis, quarantine: {
+    issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/498138',
+    type: :flaky,
+    only: { job: /cng-instance/ }
+  } do
+    describe 'Enable Scanning from UI' do
       let(:test_data_sast_string_fields_array) do
         [
           %w[SECURE_ANALYZERS_PREFIX registry.example.com],