From a88fe0fd146b018609a12815ecf336e09d28fb1f Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sun, 12 Jul 2020 22:07:38 +0200 Subject: [PATCH] workflows: limit what branches to run CodeQL on Align CodeQL action with existing CI actions: - Update branch filter to avoid duplicate CI runs. - Shorten workflow name due to informative job name. Reviewed-by: Daniel Stenberg Closes #5660 --- .github/workflows/codeql-analysis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a8329ff7c..fbdcf8a26 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,16 +1,21 @@ -name: "Code scanning - action" +name: CI on: + # Trigger the workflow on push or pull requests, but only for the + # master branch push: + branches: + - master + - '*/ci' pull_request: + branches: + - master schedule: - cron: '0 0 * * 4' jobs: - CodeQL-Build: - + codeql: runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v2