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
31 changes: 31 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,34 @@ updates:
ignore:
- dependency-name: "xunit.v3"
update-types: ["version-update:semver-major"]

# The Android head has its own Directory.Packages.props and is not covered
# by the root entry above.
- package-ecosystem: nuget
directory: /src/LageBuch.App.Android
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
avalonia:
patterns:
- "Avalonia*"

# The acceptance test project has its own Directory.Packages.props and is
# not covered by the root entry above.
- package-ecosystem: nuget
directory: /tests/LageBuch.Acceptance.Tests
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
avalonia:
patterns:
- "Avalonia*"
# xunit.v3 4.0.0 removes the TestIntrospectionHelper.GetTestCaseDetails()
# overload that Avalonia.Headless.XUnit 12.1.1 still calls, breaking all
# acceptance tests (AvaloniaUI/Avalonia#22072). Drop this ignore once
# Avalonia ships a compatible package.
ignore:
- dependency-name: "xunit.v3"
update-types: ["version-update:semver-major"]
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
- synchronize
- reopened

# This workflow builds and tests untrusted pull_request code; the token only
# needs to read the repository to check it out, so keep it read-only
# regardless of the org/repo default permissions.
permissions:
contents: read

jobs:
build-test:
strategy:
Expand Down Expand Up @@ -37,6 +43,11 @@ jobs:
- name: Restore
run: dotnet restore

- name: Format check
run: |
dotnet format whitespace LageBuch.Desktop.slnf --verify-no-changes
dotnet format style LageBuch.Desktop.slnf --verify-no-changes

- name: Build
run: dotnet build --configuration Release --no-restore

Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ on:
jobs:
claude:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.review.author_association)) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.issue.author_association))
runs-on: ubuntu-latest
permissions:
# Claude commits fix branches for @claude requests and links a PR-creation
# URL in its response; anthropics/claude-code-action's GitHub App lists
# "Contents (Read & Write): For reading repository files and creating
# branches" as a currently-used permission (docs/security.md), so the
# workflow token needs write here too — read-only would break that flow.
contents: write
pull-requests: write
issues: write
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ once we reach 1.0.
mistyped ppm reading no longer lands in the Einsatztagebuch. The tile previews the pending
state while the sidebar is open. (#242)

### Security
- Harden CI workflows: `ci.yml` now runs with read-only `contents` permission and enforces
`dotnet format` in CI; `claude.yml` only responds to `@claude` mentions from repo owners,
members and collaborators; Dependabot now tracks the Android and acceptance-test projects'
own `Directory.Packages.props` files in addition to the root one.

## [0.4.1] - 2026-09-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion tests/LageBuch.Sync.Hosting.Tests/RemoteClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public async Task Connect_surfaces_429_as_pin_rejected_during_rate_limiting()
// from this IP. The first wrong PIN is refused with 401 (and records a failure), the second
// inside the backoff window is refused with 429; after two failures the window is 2s wide.
using (var h = new HttpClient(TestHost.InsecureTrustAllHandler())
{ BaseAddress = new Uri($"https://127.0.0.1:{port}") })
{ BaseAddress = new Uri($"https://127.0.0.1:{port}") })
{
for (var i = 0; i < 2; i++)
{
Expand Down
Loading