Skip to content

Commit

Permalink
CodeQL GitHub Action Improvements (#2533)
Browse files Browse the repository at this point in the history
- Rename action to "codeql" (default name)
- Widen the issues to scan for with the security-and-quality mode (https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#using-queries-in-ql-packs)
- Scan on every PR
- Scan on TypeScript as well as JavaScript
  • Loading branch information
coliff committed May 28, 2024
1 parent 00ff732 commit 41925b1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Security Scan

on:
schedule:
- cron: '0 6 * * *'
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
Expand All @@ -20,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['javascript']
language: ['javascript-typescript']

steps:
- name: Checkout repository
Expand All @@ -30,6 +32,7 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

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

0 comments on commit 41925b1

Please sign in to comment.