diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6ebd77da288f2cd351313643071f609f589c3252..8e1999f8c3a1c41fad1d03d45c3a7f0b09683e8c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,6 +16,7 @@ docs_lint:
   rules:
     - if: '$CI_COMMIT_TAG'
       when: never
+    - if: $CI_PIPELINE_SOURCE == "push"
   script:
     - dnf install -y python-pip
     - python3 -m pip install linkcheckmd
@@ -27,6 +28,7 @@ yaml_lint:
   rules:
     - if: '$CI_COMMIT_TAG'
       when: never
+    - if: $CI_PIPELINE_SOURCE == "push"
   script:
     - dnf install -y epel-release
     - dnf install -y yamllint