Skip to content

Commit

Permalink
Add CodeQL workflow (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
macalbert authored Oct 11, 2024
1 parent 07380a0 commit 40d519a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CodeQL

on:
workflow_dispatch:

pull_request:
branches: [main]
paths:
- ".github/workflows/codeql-analysis.yml"

push:
branches: [main]
paths:
- ".github/workflows/codeql-analysis.yml"
- "src/**"
- "test/**"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

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

permissions:
security-events: write

runs-on: ubuntu-22.04

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
lfs: true

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit 40d519a

Please sign in to comment.