From 8cdd3a3d8c8ccac821d8fe6bcb87db45441ccbb6 Mon Sep 17 00:00:00 2001 From: Justin Hutchings Date: Wed, 29 Jul 2020 23:55:52 -0700 Subject: [PATCH] chore(security): Optimize CodeQL (#541) This reduces duplicate analyses by only running on push to master, or PRs to master. --- .github/workflows/codeql-analysis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e20856728..29a78165c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,7 +2,10 @@ name: "Code scanning - action" on: push: + branches: [master, ] pull_request: + # The branches below must be a subset of the branches above + branches: [master] schedule: - cron: '0 12 * * 2'