From a2f44a9c0de715b62632136dacbe6491eadde1bf Mon Sep 17 00:00:00 2001
From: Olivier Gonzalez <52092-gonzoyumo@users.noreply.gitlab.com>
Date: Fri, 9 Feb 2024 22:38:35 +0000
Subject: [PATCH] Deprecate Python 3.9 in SCA

---
 .../16-9-deprecate-python-3.9-in-sca.yml        | 12 ++++++++++++
 doc/update/deprecations.md                      | 17 +++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 data/deprecations/16-9-deprecate-python-3.9-in-sca.yml

diff --git a/data/deprecations/16-9-deprecate-python-3.9-in-sca.yml b/data/deprecations/16-9-deprecate-python-3.9-in-sca.yml
new file mode 100644
index 0000000000000..4778d3dae3549
--- /dev/null
+++ b/data/deprecations/16-9-deprecate-python-3.9-in-sca.yml
@@ -0,0 +1,12 @@
+- title: "Deprecate Python 3.9 in Dependency Scanning and License Scanning"
+  removal_milestone: "17.0"
+  announcement_milestone: "16.9"
+  breaking_change: true
+  reporter: gonzoyumo
+  stage: secure
+  issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/441201
+  body: |  # (required) Don't change this line.
+    From GitLab 16.9, Dependency Scanning and License Scanning support for Python 3.9 is deprecated. In GitLab 17.0, Python 3.10 is the default version for the Dependency Scanning CI/CD job.
+
+    From GitLab 17.0, Dependency Scanning and License Scanning features won't support projects that require Python 3.9 without a
+    [compatible lockfile](https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#obtaining-dependency-information-by-parsing-lockfiles).
diff --git a/doc/update/deprecations.md b/doc/update/deprecations.md
index 26e358d1f0d07..f55e9919d9bcf 100644
--- a/doc/update/deprecations.md
+++ b/doc/update/deprecations.md
@@ -573,6 +573,23 @@ Users are advised to upgrade to 3.8.8 or greater.
 
 <div class="deprecation breaking-change" data-milestone="17.0">
 
+### Deprecate Python 3.9 in Dependency Scanning and License Scanning
+
+<div class="deprecation-notes">
+- Announced in GitLab <span class="milestone">16.9</span>
+- Removal in GitLab <span class="milestone">17.0</span> ([breaking change](https://docs.gitlab.com/ee/update/terminology.html#breaking-change))
+- To discuss this change or learn more, see the [deprecation issue](https://gitlab.com/gitlab-org/gitlab/-/issues/441201).
+</div>
+
+From GitLab 16.9, Dependency Scanning and License Scanning support for Python 3.9 is deprecated. In GitLab 17.0, Python 3.10 is the default version for the Dependency Scanning CI/CD job.
+
+From GitLab 17.0, Dependency Scanning and License Scanning features won't support projects that require Python 3.9 without a
+[compatible lockfile](https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#obtaining-dependency-information-by-parsing-lockfiles).
+
+</div>
+
+<div class="deprecation breaking-change" data-milestone="17.0">
+
 ### Deprecate Windows CMD in GitLab Runner
 
 <div class="deprecation-notes">
-- 
GitLab