Skip to content

Commit

Permalink
ci: configure codeql locally within the repo to allow for customization
Browse files Browse the repository at this point in the history
Moving to the configuration being in the repo allows us to specify which specific rules are run in analysis.
  • Loading branch information
josephperrott committed Jan 31, 2025
1 parent 9726cd0 commit 19c1f53
Showing 1 changed file with 36 additions and 0 deletions.
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:
push:
branches: ['main', '*.*.x']
schedule:
- cron: '39 9 * * 1'

jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
permissions:
security-events: write
packages: read
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@1a7989f3955e0c69f0e0ccc14aee54a387a0fd31 #v3.28.8
with:
languages: javascript-typescript
build-mode: none
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@86b04fb0e47484f7282357688f21d5d0e32175fe #v3.28.8
with:
category: '/language:javascript-typescript'

0 comments on commit 19c1f53

Please sign in to comment.