Skip to content

Commit

Permalink
chore: add codeql scanning (#11518)
Browse files Browse the repository at this point in the history
* chore: add codeql scanning

* fix: added quality scan to codeql
  • Loading branch information
sdstolworthy authored Jan 12, 2023
1 parent e7b082a commit 8593bd4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Ref: https://tinyurl.com/5d6rr8s7
name: "CodeQL"

on:
push:
pull_request:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript"]

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# Minimal depth 2 so we can checkout the commit before possible merge commit.
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 8593bd4

Please sign in to comment.