Skip to content

Commit

Permalink
configure security ci workflows (#9093)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mdtro authored Feb 8, 2024
1 parent fc66c1d commit 85004e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ updates:
directory: '/'
schedule:
# Check for updates to GitHub Actions every week
interval: 'weekly'
day: 'sunday'
interval: 'daily'
26 changes: 11 additions & 15 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
schedule:
- cron: '39 14 * * 0'
pull_request:
branches: ['master']
paths:
- '**.js'
- '**.jsx'
- '**.ts'
- '**.tsx'

jobs:
analyze:
Expand Down Expand Up @@ -43,11 +39,11 @@ jobs:
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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
# queries: security-extended,security-and-quality
queries: security-extended



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

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

# - run: |
Expand Down

0 comments on commit 85004e2

Please sign in to comment.