From ee9ce27ccf3a2e393ac2853e51a35d6fbb0de7b4 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Mon, 4 Apr 2022 10:02:33 +1000 Subject: [PATCH] ci: codeql only on code changes (#3108) --- .github/workflows/codeql-analysis.yml | 52 +++++++++------------------ 1 file changed, 16 insertions(+), 36 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index afbc211a..bb22f1d6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,46 +18,26 @@ on: branches: - master - gh-pages - paths-ignore: - - '.github/**' - - '.buildkite/**' - - 'docs/**' - - 'examples/**' - - '*.env' - - '*.yml' - - '*.service' - - '*.sh' - - '*.md' - - '.all-contributorsrc' - - '.dockerignore' - - '.gitignore' - - '.renovaterc' - - 'Dockerfile' - - 'Dockerfile.*' - - 'LICENSE' - - 'internal/configuration/config.template.yml' + paths: + - 'go.mod' + - 'go.sum' + - '**/*.go' + - '**/*.ts' + - '**/*.tsx' + - '**/*.js' + - '**/*.jsx' pull_request: # The branches below must be a subset of the branches above branches: - master - paths-ignore: - - '.github/**' - - '.buildkite/**' - - 'docs/**' - - 'examples/**' - - '*.env' - - '*.yml' - - '*.service' - - '*.sh' - - '*.md' - - '.all-contributorsrc' - - '.dockerignore' - - '.gitignore' - - '.renovaterc' - - 'Dockerfile' - - 'Dockerfile.*' - - 'LICENSE' - - 'internal/configuration/config.template.yml' + paths: + - 'go.mod' + - 'go.sum' + - '**/*.go' + - '**/*.ts' + - '**/*.tsx' + - '**/*.js' + - '**/*.jsx' schedule: - cron: '25 13 * * 3'