Skip to content

Commit 85004e2

Browse files
authored
configure security ci workflows (#9093)
* configure ci security workflows - set codeql to scan on pull requests - set dependabot to check for GHA updates daily * codeql: only trigger scans when there are JS/TS changes
1 parent fc66c1d commit 85004e2

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.github/dependabot.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ updates:
3030
directory: '/'
3131
schedule:
3232
# Check for updates to GitHub Actions every week
33-
interval: 'weekly'
34-
day: 'sunday'
33+
interval: 'daily'

.github/workflows/codeql-analysis.yml

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
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
schedule:
165
- cron: '39 14 * * 0'
6+
pull_request:
7+
branches: ['master']
8+
paths:
9+
- '**.js'
10+
- '**.jsx'
11+
- '**.ts'
12+
- '**.tsx'
1713

1814
jobs:
1915
analyze:
@@ -43,11 +39,11 @@ jobs:
4339
# If you wish to specify custom queries, you can do so here or in a config file.
4440
# By default, queries listed here will override any specified in a config file.
4541
# Prefix the list here with "+" to use these queries and those in the config file.
46-
42+
4743
# 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
48-
# queries: security-extended,security-and-quality
44+
queries: security-extended
45+
4946

50-
5147
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5248
# If this step fails, then you should remove it and run the build manually (see below)
5349
- name: Autobuild
@@ -56,7 +52,7 @@ jobs:
5652
# ℹ️ Command-line programs to run using the OS shell.
5753
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
5854

59-
# If the Autobuild fails above, remove it and uncomment the following three lines.
55+
# If the Autobuild fails above, remove it and uncomment the following three lines.
6056
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6157

6258
# - run: |

0 commit comments

Comments
 (0)