From e30fb46159d23d0d136d12fffb26f1e96b3c5b3d Mon Sep 17 00:00:00 2001 From: "devsecninja-automation[bot]" <280875964+devsecninja-automation[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:54:42 +0000 Subject: [PATCH] chore: sync config files from DevSecNinja/.github --- .editorconfig | 3 +++ .github/CODEOWNERS | 4 ++-- .yamlfmt.yaml | 5 +++++ dprint.json | 4 +++- issue-labeler.yaml | 43 +++++++++++++++++++++++++------------------ pr-labeler.yaml | 38 +++++++++++++++++++++++++++++++++----- 6 files changed, 71 insertions(+), 26 deletions(-) diff --git a/.editorconfig b/.editorconfig index 2e450828..245f5b74 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,3 +16,6 @@ trim_trailing_whitespace = false [*.sh] indent_size = 4 + +[*.py] +indent_size = 4 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ed16f2ee..d494a2f4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -45,12 +45,12 @@ /poetry.lock /uv.lock /Pipfile.lock -/requirements*.txt +/*requirements*.txt **/pyproject.toml **/poetry.lock **/uv.lock **/Pipfile.lock -**/requirements*.txt +**/*requirements*.txt # Go /go.mod diff --git a/.yamlfmt.yaml b/.yamlfmt.yaml index 88f9f56d..ce24c168 100644 --- a/.yamlfmt.yaml +++ b/.yamlfmt.yaml @@ -19,3 +19,8 @@ exclude: - apm.yml - apm.lock.yaml - apm_modules/** + # Spec Kit output and Python virtual environments. Listed explicitly rather + # than through gitignore_excludes: without a .gitignore, yamlfmt then lints + # nothing and still exits 0. + - .specify/** + - .venv*/** diff --git a/dprint.json b/dprint.json index 886f6805..f5e8c802 100644 --- a/dprint.json +++ b/dprint.json @@ -16,7 +16,9 @@ ".gemini/**", ".windsurf/**", ".kiro/**", - ".agents/**" + ".agents/**", + ".github/skills/**", + ".specify/**" ], "plugins": [ "https://plugins.dprint.dev/markdown-0.21.1.wasm" diff --git a/issue-labeler.yaml b/issue-labeler.yaml index 1c293ae5..13ddbd48 100644 --- a/issue-labeler.yaml +++ b/issue-labeler.yaml @@ -1,43 +1,50 @@ --- -# Conventional Commit type prefixes (from cog/cliff config) +# Rules for github/issue-labeler v3 (see .github/workflows/labeler.yml). +# +# - Write case-insensitive patterns as '/pattern/i'. The action builds a +# JavaScript RegExp, which rejects inline flags such as '(?i)'. +# - The action ANDs the entries listed under a label, so each label has one +# pattern and "either/or" lives in a single alternation. +# - The issue title and body are matched together, title first. Without the +# 'm' flag, '^' anchors at the start of the title. +# +# Tests: tests/issue-labeler-config.py + +# Conventional Commit type prefix, or a keyword (from cog/cliff config) feat: - - '^feat(\(.+\))?:' - - '(?i)(feature request|enhancement|add support|would be (nice|great)|request)' + - '/^feat(\(.+\))?!?:|\b(feature request|enhancement|add support|would be (nice|great))/i' fix: - - '^fix(\(.+\))?:' - - '(?i)(error|crash|fail|broken|not work|doesn.t work|bug)' + - '/^fix(\(.+\))?!?:|\b(errors?|crash(es|ed|ing)?|fail(s|ed|ing|ures?)?|broken|not work(s|ing)?|doesn.t work|bugs?)\b/i' perf: - - '^perf(\(.+\))?:' + - '/^perf(\(.+\))?!?:/i' refactor: - - '^refactor(\(.+\))?:' + - '/^refactor(\(.+\))?!?:/i' docs: - - '^docs(\(.+\))?:' - - '(?i)(doc|readme|wiki|guide|tutorial|documentation)' + - '/^docs(\(.+\))?!?:|\b(docs?|readme|wiki|guides?|tutorials?|documentation)\b/i' ci: - - '^ci(\(.+\))?:' - - '(?i)(github action|workflow|pipeline|\.github)' + - '/^ci(\(.+\))?!?:|\b(github actions?|workflows?|pipelines?)\b|\.github\b/i' chore: - - '^chore(\(.+\))?:' + - '/^chore(\(.+\))?!?:/i' # Area labels area/apps: - - '(?i)(app|service|container|docker)' + - '/\b(apps?|services?|containers?)\b|\bdocker/i' area/github: - - '(?i)(github action|workflow|ci|pipeline|\.github)' + - '/\b(github actions?|workflows?|ci|pipelines?)\b|\.github\b/i' area/renovate: - - '(?i)(renovate|dependency|dependenc|update.*package|package.*update)' + - '/\b(renovate|dependenc|update.*package|package.*update)/i' area/scripts: - - '(?i)(script|automation|bash|shell|cron)' + - '/\b(scripts?|automation|bash|shell)\b|\bcron/i' -# General +# General: a question mark in the title, or a question keyword question: - - '(?i)(how (do|to|can)|question|\?)' + - '/^[^\n]*\?|\b(how (do|to|can)|question)\b/i' diff --git a/pr-labeler.yaml b/pr-labeler.yaml index 89493b1e..982903fe 100644 --- a/pr-labeler.yaml +++ b/pr-labeler.yaml @@ -1,26 +1,54 @@ --- +# Rules for actions/labeler v7 (see .github/workflows/labeler.yml). +# +# config-sync overwrites this file in every repository, so no rule may assume +# one repository layout. Globs run with `dot: true`. Items under one +# `changed-files` key are alternatives (any of them labels the PR). +# +# Tests: tests/pr-labeler-config.py + +# Application code: a changed file under a conventional top-level source +# directory, except docs, scripts, tests and hidden directories at any depth, +# Markdown and shell scripts (those belong to area/docs or area/scripts). +# Other top-level directories (infra/, config/, public/, home/, ...) and +# root-level files get no area/apps. area/apps: - changed-files: - - any-glob-to-any-file: - - services/**/* + - all-globs-to-any-file: + - '{src,app,apps,services,packages,crates,lib,cmd,pkg,internal,backend,frontend}/**' + - '!**/.*/**' + - '!**/{doc,docs}/**' + - '!**/{script,scripts}/**' + - '!**/{test,tests,e2e,__tests__}/**' + - '!**/*.{md,mdx}' + - '!**/*.{sh,bash,ps1,psm1}' area/docs: - changed-files: - any-glob-to-any-file: - - docs/**/* + - '**/{doc,docs}/**' + - all-globs-to-any-file: + - '**/*.{md,mdx}' + - '!**/CHANGELOG.md' area/github: - changed-files: - any-glob-to-any-file: - - .github/**/* + - .github/** area/renovate: - changed-files: - any-glob-to-any-file: - renovate.json - renovate.json5 + - .github/renovate.json + - .github/renovate.json5 + - .renovaterc + - .renovaterc.json + - .renovaterc.json5 area/scripts: - changed-files: - any-glob-to-any-file: - - scripts/**/* + - '**/{script,scripts}/**' + - '**/*.{sh,bash,ps1,psm1}'