Apache Lucene open-source search software
ci: enable zizmor online checks at night (#15372)
Robert Muir474f8484c6cf
diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.ymlindex 7c3df2ab8dd..32b20f105e6 100644--- a/.github/workflows/actions.yml+++ b/.github/workflows/actions.yml@@ -11,6 +11,8 @@ on:- mainpaths:- '.github/**'+ schedule:+ - cron: '22 2 * * *'permissions: {}@@ -43,8 +45,8 @@ jobs:run: uvx zizmor --pedantic --format=sarif . > results.sarifenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- # TODO: offline checks only to avoid any rate-limiting issues, maybe enable nightly?- ZIZMOR_OFFLINE: true+ # run offline for branches and PRs to avoid rate limits+ ZIZMOR_OFFLINE: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}- name: Upload SARIF fileuses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5with: