Skip to content

Commit

Permalink
feat: codeql configuration (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
XionWCFM authored Nov 18, 2024
1 parent c4229fd commit d21489c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'CodeQL config'

paths:
- packages/**
- apps/**
paths-ignore:
- '**/*.test.ts'
- '**/*.test.tsx'
- '**/*.stories.ts'
- '**/*.stories.tsx'
- '**/node_modules/**'
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'CodeQL'

on:
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-typescript']

steps:
- name: Checkout repository
uses: actions/checkout@v3

- 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 d21489c

Please sign in to comment.