maziggy 1 bulan lalu
induk
melakukan
62f2e616a0
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      .github/workflows/security.yml

+ 2 - 2
.github/workflows/security.yml

@@ -146,7 +146,7 @@ jobs:
           retention-days: 30
 
       - name: Create or close pip security issue
-        if: always()
+        if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
         uses: actions/github-script@v7
         with:
           script: |
@@ -321,7 +321,7 @@ jobs:
           retention-days: 30
 
       - name: Create or close npm security issue
-        if: always()
+        if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
         uses: actions/github-script@v7
         with:
           script: |