Skip to content

Commit

Permalink
Merge pull request #243 from beatrycze-volk/codeql
Browse files Browse the repository at this point in the history
Introduce CodeQL code analysis
  • Loading branch information
beatrycze-volk authored Oct 19, 2023
2 parents 6b1d722 + 6fabb9d commit 2af0d45
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "CodeQL Configuration"

queries:
- uses: security-and-quality

query-filters:
- exclude:
problem.severity:
- note

paths-ignore:
- Resources/Public/JavaScript
39 changes: 39 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

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
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql.yml

- 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 2af0d45

Please sign in to comment.