summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2020-07-12 22:07:38 +0200
committerMarc Hoersken <info@marc-hoersken.de>2020-07-13 21:01:03 +0200
commita88fe0fd146b018609a12815ecf336e09d28fb1f (patch)
treef0aa31ade39a0b934932a4145610ed40bace2dde /.github
parent35fa07c84b6bf43358b8d6d02e0722adef04908a (diff)
downloadcurl-a88fe0fd146b018609a12815ecf336e09d28fb1f.tar.gz
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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeql-analysis.yml13
1 files 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