From 00d445d53343b4b4a320fc9f4082b473b634f5a8 Mon Sep 17 00:00:00 2001 From: Rohitesh Gupta <1429138+srkgupta@users.noreply.github.com> Date: Wed, 30 Mar 2022 10:52:22 +0530 Subject: [PATCH] Fixed CodeQL failures on master push (#19866) * Running CodeQL everyday twice * Updated scorecard-check to run everyday * Running Scorecard job once a day * Disabling Scorecard Job on every PR Co-authored-by: Mattermod --- .github/workflows/codeql-analysis.yml | 4 +--- .github/workflows/scorecards-analysis.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index afbe4b3530..8011abf521 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,13 +1,11 @@ name: "CodeQL" on: - push: - branches: [ master ] pull_request: # The branches below must be a subset of the branches above branches: [ master ] schedule: - - cron: '0 0 * * 0' + - cron: '30 5,17 * * *' jobs: analyze: diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index ec27ee18b0..48be510409 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -3,9 +3,7 @@ on: # Only the default branch is supported. branch_protection_rule: schedule: - - cron: '44 6 * * 4' - push: - branches: [ master ] + - cron: '44 6 * * *' # Declare default permissions as read only. permissions: read-all