diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml
index bb7631d2d3c200a52826077d533ab0457ace6d93..1da412c1993e47c224984a7f89bebacf0de826ae 100644
--- a/.oniro-ci/build-generic.yaml
+++ b/.oniro-ci/build-generic.yaml
@@ -388,6 +388,9 @@
     CI_ONIRO_JOB_ARTIFACTS: "*.elf *.bin"
   script:
     - !reference [.build-image, script]
+    - echo 'INHERIT += "create-spdx"' >> conf/local.conf
+    - echo 'do_create_spdx[nostamp] = "1"' >> conf/local.conf
+    - bitbake --runall=do_create_spdx $CI_ONIRO_RECIPE_NAME
 
 # This job is currently used to customize the behavior in oniro and xts-acts.
 # It will be removed when that is safe to do so. It is not documented.