From ba59deae5f0fb04817c2b860f2bad5c180d28016 Mon Sep 17 00:00:00 2001
From: Jed Fox <git@jedfox.com>
Date: Wed, 12 Apr 2023 23:28:53 -0400
Subject: [PATCH] Add CodeQL action (#890)

---
 .github/workflows/codeql.yml  | 32 ++++++++++++++++++++++++++++++++
 upcoming-release-notes/890.md |  6 ++++++
 2 files changed, 38 insertions(+)
 create mode 100644 .github/workflows/codeql.yml
 create mode 100644 upcoming-release-notes/890.md

diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 000000000..e8acaedaa
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,32 @@
+name: CodeQL
+
+on:
+  push:
+    branches: [master]
+  pull_request:
+    branches: [master]
+  schedule:
+    - cron: '23 11 * * 6'
+
+jobs:
+  analyze:
+    name: Analyze
+    runs-on: ubuntu-latest
+    permissions:
+      actions: read
+      contents: read
+      security-events: write
+
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v3
+
+      - name: Initialize CodeQL
+        uses: github/codeql-action/init@v2
+        with:
+          languages: javascript
+
+      - name: Perform CodeQL Analysis
+        uses: github/codeql-action/analyze@v2
+        with:
+          category: '/language:javascript'
diff --git a/upcoming-release-notes/890.md b/upcoming-release-notes/890.md
new file mode 100644
index 000000000..3c7995a8f
--- /dev/null
+++ b/upcoming-release-notes/890.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [j-f1]
+---
+
+Add a CodeQL workflow to automatically scan for potential security issues
-- 
GitLab