From 96cdcfc719b4871a569fde9f596a6dc15f1b1a50 Mon Sep 17 00:00:00 2001 From: Ved <163000251+cedaraspen@users.noreply.github.com> Date: Mon, 26 Oct 2026 15:36:57 -0400 Subject: [PATCH] Add security ownership, dependency updates, and CodeQL scans --- .github/CODEOWNERS | 11 ++++++++++ .github/dependabot.yml | 27 ++++++++++++++++++++++++ .github/workflows/codeql.yml | 41 ++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..34bbf2f3 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,11 @@ +# Enforce code-owner review in the default branch ruleset for these requests +# to become a merge requirement. Restrict broad ruleset bypasses separately. +/.github/ @reddit/devplatform +/.nvmrc @reddit/devplatform +/.yarn/ @reddit/devplatform +/.yarnrc.yml @reddit/devplatform +/package.json @reddit/devplatform +/yarn.lock @reddit/devplatform +/docusaurus.config.ts @reddit/devplatform +/plugins/ @reddit/devplatform +/scripts/ @reddit/devplatform diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..1b813e34 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,27 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 5 + groups: + action-maintenance: + patterns: + - "*" + update-types: + - minor + - patch + + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 10 + groups: + docusaurus-maintenance: + patterns: + - "@docusaurus/*" + update-types: + - minor + - patch diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..9a3eb632 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: CodeQL Security + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "17 6 * * 1" + +permissions: {} + +jobs: + analyze: + name: Analyze ${{ matrix.language }} + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: [actions, javascript-typescript] + steps: + - name: Checkout code + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + with: + persist-credentials: false + + # These languages require no application build or dependency installation. + - name: Initialize CodeQL + uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4 + with: + languages: ${{ matrix.language }} + build-mode: none + + - name: Analyze code + uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4 + with: + category: /language:${{ matrix.language }}