From 9dc2f03760227b0a7624a4ca6a2125815b8dff75 Mon Sep 17 00:00:00 2001 From: Cameron Custer <73217097+cameroncuster@users.noreply.github.com> Date: Thu, 23 Jul 2026 21:13:30 +0000 Subject: [PATCH] ci(security): add dependency and code scanning --- .github/dependabot.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/codeql.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2ced81c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,35 @@ +version: 2 + +updates: + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + day: monday + time: '06:00' + timezone: Etc/UTC + open-pull-requests-limit: 5 + groups: + production-dependencies: + dependency-type: production + update-types: + - minor + - patch + development-dependencies: + dependency-type: development + update-types: + - minor + - patch + + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + day: monday + time: '06:30' + timezone: Etc/UTC + open-pull-requests-limit: 2 + groups: + github-actions: + patterns: + - '*' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..2aa61db --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,34 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: '17 5 * * 2' + +permissions: + contents: read + security-events: write + +jobs: + analyze: + name: Analyze JavaScript/TypeScript + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Check out repository + uses: actions/checkout@v5 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: javascript-typescript + build-mode: none + + - name: Analyze + uses: github/codeql-action/analyze@v4 + with: + category: /language:javascript-typescript