Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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: "/"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

directory: "/" points NuGet discovery at the repository root, but both NuGet manifests are nested under src/ConsoleMode and tests/ConsoleMode.Tests. Dependabot will therefore find no project to update for this entry; configure both manifest directories (or use the directories option) so the app and test dependencies are covered.

Technical details
# NuGet manifests are outside the configured directory

## Affected sites
- `.github/dependabot.yml:6` — configures the NuGet scan at the repository root.
- `src/ConsoleMode/ConsoleMode.csproj:49-54` — contains the app's NuGet references.
- `tests/ConsoleMode.Tests/ConsoleMode.Tests.csproj:13-16` — contains the test project's NuGet references.

## Required outcome
- Configure NuGet discovery for both `/src/ConsoleMode` and `/tests/ConsoleMode.Tests`, or an equivalent supported multi-directory configuration.

## Suggested approach
- Replace the single root entry with two NuGet entries, or use `directories` if the repository's Dependabot configuration version supports it.

## Sources
- https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#directory
- https://docs.github.com/en/code-security/reference/supply-chain-security/supported-ecosystems-and-manifests-for-dependency-scope

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)"
42 changes: 42 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
Loading