diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 0f09619b3..fd02de967 100644 --- a/.github/workflows/security.yml +++ b/.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: |