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
24 changes: 24 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Dependency Review - blocks PRs that introduce known-vulnerable dependencies
name: Dependency Review

on:
pull_request:
branches: [main]

permissions:
contents: read
pull-requests: write

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Dependency Review
uses: actions/dependency-review-action@v4
with:
fail-on-severity: high
comment-summary-in-pr: always
deny-licenses: GPL-3.0-only, AGPL-3.0-only
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Pre-commit hooks for Agent365-dotnet
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files

repos:
# Gitleaks - detect secrets in code
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
hooks:
- id: gitleaks

# Whitespace fixes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: check-merge-conflict
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: check-xml

# .NET specific - format check
- repo: local
hooks:
- id: dotnet-format
name: dotnet format
entry: dotnet format src/Microsoft.Agents.A365.Sdk.sln --verify-no-changes --verbosity diagnostic
language: system
types: [c#]
pass_filenames: false