diff --git a/.github/workflows/unused-imports.yml b/.github/workflows/unused-imports.yml
index e716a9c01..d6e820ae6 100644
--- a/.github/workflows/unused-imports.yml
+++ b/.github/workflows/unused-imports.yml
@@ -1,20 +1,20 @@
 name: Check for unused imports using Pylint
-on: push
-  #  pull_request_target:
-  #    types: [opened, reopened, ready_for_review, locked]
+on:
+  pull_request_target:
+    types: [opened, reopened, ready_for_review, locked]
 
 jobs:
   Check-Unused-Imports:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - name: Set up Python
         uses: actions/setup-python@v3
         with:
           python-version: 3.11
       - name: Install dependencies
         run: |
           python -m pip install --upgrade pip
           pip install pylint
       - name: Analysing the code with pylint
         run:  make unused-imports