From a015aaefe378e405ffdb7a866ed192bbc63aa007 Mon Sep 17 00:00:00 2001 From: Filipe Moreira Date: Fri, 25 Sep 2026 16:32:09 -0300 Subject: [PATCH] ci: enable Dependabot (monthly, grouped) and CodeQL Co-Authored-By: Claude Opus 5.5 --- .github/dependabot.yml | 25 +++++++++++++++++++++ .github/workflows/codeql.yml | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 67 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..503fa9d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,25 @@ +# Monthly, grouped dependency updates: at most one PR per ecosystem per month. +# The CI workflow builds and tests each PR on Windows before merge. +version: 2 +updates: + - package-ecosystem: nuget + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 2 + groups: + nuget: + patterns: ["*"] + commit-message: + prefix: "chore(deps)" + + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 2 + groups: + actions: + patterns: ["*"] + commit-message: + prefix: "ci(deps)" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..344a076 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: CodeQL + +# Security analysis (free for public repos). C# is analysed without building +# (build-mode: none), so it runs on Linux; the workflows are analysed too. +on: + pull_request: + branches: [main] + push: + branches: [main] + schedule: + - cron: "23 6 * * 1" + +permissions: + contents: read + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + security-events: write + contents: read + actions: read + strategy: + fail-fast: false + matrix: + language: [csharp, actions] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: none + + - name: Analyze + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{ matrix.language }}"