Skip to content

Commit

Permalink
ci(codeql): specify which files to scan during analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed May 10, 2022
1 parent bc130e3 commit 0ec3679
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "CodeQL Config"

# **What it does**: This provides a config to the CodeQL GitHub Action in this repo.
# **Why we have it**: Security scanning.

queries:
- uses: security-and-quality

# Limit the paths scanning takes place, improving speed of scan
paths:
- "**/*.html"
- "**/*.js"
- "**/*.yml"
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: github/codeql-action/init@v2
with:
languages: javascript
queries: security-and-quality
config-file: ./.github/codeql-config.yml

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 0ec3679

Please sign in to comment.