Skip to content

Commit d0cf2a8

Browse files
committed
chore(codeql): improve triggering conditions
1 parent 5c6ec9d commit d0cf2a8

File tree

1 file changed

+2
-36
lines changed

1 file changed

+2
-36
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: 'CodeQL'
132

143
on:
154
push:
16-
branches: [ 'master', 'production' ]
17-
paths: [ '_javascript' ]
5+
paths: [ '**.js' ]
186
pull_request:
19-
# The branches below must be a subset of the branches above
20-
branches: [ 'master' ]
21-
paths: [ '_javascript' ]
7+
paths: [ '**.js' ]
228
schedule:
239
- cron: '0 0 * * 5'
2410

@@ -35,9 +21,6 @@ jobs:
3521
fail-fast: false
3622
matrix:
3723
language: [ 'javascript' ]
38-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
39-
# Use only 'java' to analyze code written in Java, Kotlin or both
40-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
4124
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4225

4326
steps:
@@ -49,29 +32,12 @@ jobs:
4932
uses: github/codeql-action/init@v2
5033
with:
5134
languages: '${{ matrix.language }}'
52-
# If you wish to specify custom queries, you can do so here or in a config file.
53-
# By default, queries listed here will override any specified in a config file.
54-
# Prefix the list here with "+" to use these queries and those in the config file.
55-
56-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
57-
# queries: security-extended,security-and-quality
58-
5935

6036
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
6137
# If this step fails, then you should remove it and run the build manually (see below)
6238
- name: Autobuild
6339
uses: github/codeql-action/autobuild@v2
6440

65-
# ℹ️ Command-line programs to run using the OS shell.
66-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
67-
68-
# If the Autobuild fails above, remove it and uncomment the following three lines.
69-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
70-
71-
# - run: |
72-
# echo "Run, Build Application using script"
73-
# ./location_of_script_within_repo/buildscript.sh
74-
7541
- name: Perform CodeQL Analysis
7642
uses: github/codeql-action/analyze@v2
7743
with:

0 commit comments

Comments
 (0)