Skip to content

Commit

Permalink
build(github): adding codeql build
Browse files Browse the repository at this point in the history
Checks for security issues.
  • Loading branch information
markmcdowell committed Apr 26, 2021
1 parent f5a2ab4 commit ec15403
Show file tree
Hide file tree
Showing 2 changed files with 40 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 @@
---
name: Default CodeQL config
paths-ignore:
- node_modules
- '**/*.test.ts'
- '**/dist/**/*'
- '**/lib/**/*'
33 changes: 33 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: GitHub CodeQL
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 7 * * 6'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['typescript']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
config-file: ./.github/codeql-config.yml
languages: ${{ matrix.language }}
- name: Install npm dependencies
run: npm ci
- name: Build
run: npm run build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit ec15403

Please sign in to comment.