From 0d0f0ef80ee09bea09bf140a1bf2727ad8d58ff5 Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Thu, 15 Jul 2021 17:20:13 +0100 Subject: [PATCH 1/2] Suggest limiting push/pull_request triggers Bring the template in line with the one used by the UI. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62b5fbce9..b7b3a0e9b 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ To get code scanning results from CodeQL analysis on your repo you can use the f name: "Code Scanning - Action" on: - push: - pull_request: + push: [main] + pull_request: [main] schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) From 2a20b15eca35e52f082a7082cb7384bce13f825b Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Fri, 16 Jul 2021 10:08:37 +0100 Subject: [PATCH 2/2] Update README.md Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com> --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b7b3a0e9b..f1bfdcaf8 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,10 @@ To get code scanning results from CodeQL analysis on your repo you can use the f name: "Code Scanning - Action" on: - push: [main] - pull_request: [main] + push: + branches: [main] + pull_request: + branches: [main] schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23)