Skip to content

Commit

Permalink
Enable GitHub code scanning with CodeQL (to replace the soon-to-be-de…
Browse files Browse the repository at this point in the history
…precated LGTM.com) (#25056)

* Create codeql.yml

* Update codeql.yml

* Create codeql-config.yml

* Update codeql.yml

* Update codeql-config.yml

* Update and rename codeql.yml to codeql-code-scanning.yml

* Update codeql-code-scanning.yml

* Update codeql-code-scanning.yml

* Update codeql-config.yml

* Update codeql-config.yml

* Update codeql-config.yml

Co-authored-by: Michael Herzog <[email protected]>
  • Loading branch information
sj and Mugen87 authored Dec 21, 2022
1 parent 1e61472 commit 5ee9d03
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
paths-ignore:
- "docs/prettify/**/*.*"
- "editor/js/libs/**/*.*"
- "examples/jsm/libs/**/*.*"
- "examples/jsm/loaders/ifc/**/*.*"
- "build/*.*"
- "manual/3rdparty/**/*.*"
45 changes: 45 additions & 0 deletions .github/workflows/codeql-code-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "CodeQL"

on:
push:
branches: [ "dev" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "dev" ]
schedule:
- cron: '29 23 * * 0'
workflow_dispatch:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml
queries: security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 5ee9d03

Please sign in to comment.