
Security News
GitHub to Block pull_request_target Workflows by Default Starting December 2
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.
Lightweight helper to claim named mutexes so you can gate, block, or unlock single-instance apps.
MiniMutex is a lightweight, zero-dependency helper for safely claiming named mutexes.
Use it to gate, block, or unlock single-instance apps and coordinated worker processes.
Targets .NET 6+.
MiniMutexGate.Init()dotnet add package MiniMutex
Or via the NuGet package manager:
Install-Package MiniMutex
using MiniMutex;
// Claim a mutex (global makes it visible across user sessions)
if (MiniMutexGate.TryClaim("my-app-single-instance",
out var handle,
new MiniMutexOptions { UseGlobalNamespace = true }))
{
// You own the mutex while the handle lives
// ... launch a guarded app, gate a critical section, etc.
handle.Dispose(); // or using var handle = ...
}
using var manager = new MiniMutexManager();
if (manager.TryClaim("worker-1", out _)
&& manager.TryClaim("worker-2", out _))
{
// Work while both locks are held
}
manager.ReleaseAll();
MiniMutexGate.Init(new MiniMutexOptions
{
UseGlobalNamespace = true,
WaitForExisting = TimeSpan.FromSeconds(2),
});
// All future TryClaim calls without explicit options use defaults
MiniMutexGate.TryClaim("shared-job", out _);
MiniMutexOptions lets you configure:
Dispose()MiniMutex is licensed under the MIT License.
FAQs
Lightweight helper to claim named mutexes so you can gate, block, or unlock single-instance apps.
We found that MiniMutex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.

Security News
/Application Security
A practical guide to securing GitHub Actions against supply chain attacks, covering malicious pull requests, credential theft, dependency risks, and release pipelines.

Security News
Composer 2.11 adds dependency cooldowns, joining package managers that delay new releases to reduce supply chain risks while allowing urgent security updates.