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
21 changes: 12 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
; https://editorconfig.org/

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,yml,yaml}]
indent_style = space
indent_size = 2
[*.md]
indent_size = 4
trim_trailing_whitespace = false

[*.{js,mjs,ts,tsx}]
indent_style = space
indent_size = 2
[*.sh]
indent_size = 4

[*.md]
indent_style = space
[*.py]
indent_size = 4
43 changes: 43 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# Lint caller that repo-steward adds to public repos without one (rule
# baseline/required-file#lint, policy/baseline.toml [[files]]). It follows
# DevSecNinja/.github workflow-templates/lint.yml and
# docs/workflow-trigger-conventions.md. Private repos get lint-private.yml.
# Renovate keeps the pin and the mise version current. When steward opens the
# PR, main becomes the repo's default branch.
name: Lint

on:
# gitleaks scans only the PR's own commits here. The full history is
# scanned by secret-scan.yml (DevSecNinja/.github#520); this workflow's
# push run scans it too, as the reusable workflow does on every non-PR event.
pull_request:
# Public repos upload SARIF to code scanning, which needs a default-branch
# analysis as the baseline for PR alerts.
push:
branches:
- main

permissions:
contents: read

# One run per PR (or branch). A newer push to a PR cancels its running run; a
# running push run is never cancelled, a queued one is superseded.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
uses: DevSecNinja/.github/.github/workflows/lint.yml@c93b7670605e165cc757724b690deb130784e803 # v4.4.0
permissions:
contents: read
security-events: write
with:
# renovate: datasource=github-releases depName=jdx/mise
mise-version: "2026.11.9"
# The linters run from the repo's own mise config (.mise.toml): pin the
# tools it needs there. Every linter is on by default; turning off
# gitleaks, trivy, zizmor or checkov needs a repo-steward exception
# (rule security/ci-scanners). See DevSecNinja/.github
# workflow-templates/lint.yml for the other inputs.
48 changes: 48 additions & 0 deletions .github/workflows/secret-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# Secret-scan caller that repo-steward adds to every repo without one (rule
# baseline/required-file#secret-scan, policy/baseline.toml [[files]]). It
# follows DevSecNinja/.github's own secret-scan-caller.yml: lint-include.yml,
# the thin variant of the reusable lint workflow where every linter is off
# unless set to true, with only gitleaks on. gitleaks scans the full git
# history on every event that isn't a pull request (DevSecNinja/.github#520),
# so new gitleaks
# rules re-check old commits. Findings stay private: public repos upload them
# to code scanning (category gitleaks/history) and log a count only; private
# repos list them in the job summary, which only collaborators can read.
# Pull requests are scanned by the lint caller (their own commits only).
# Renovate keeps the pin and the mise version current. When steward opens the
# PR, main becomes the repo's default branch.
name: Secret scan

on:
push:
branches:
- main
schedule:
- cron: "23 5 * * 1"
workflow_dispatch:

permissions:
contents: read

# A scan that already started finishes; the next one queues.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
gitleaks:
uses: DevSecNinja/.github/.github/workflows/lint-include.yml@c93b7670605e165cc757724b690deb130784e803 # v4.4.0
permissions:
contents: read
# Public repos: the history findings go to code scanning.
security-events: write
with:
# renovate: datasource=github-releases depName=jdx/mise
mise-version: "2026.11.9"
# History findings only report (warnings); this fails the run when the
# scan or the code scanning upload fails, so a silent gap can't look
# green. gitleaks must be pinned in the repo's .mise.toml.
lint-fail-on-error: true
# lint-include.yml runs no linter unless it is set to true.
lint-gitleaks: true
8 changes: 0 additions & 8 deletions .yamlfmt

This file was deleted.

26 changes: 26 additions & 0 deletions .yamlfmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
doublestar: true
formatter:
type: basic
disable_alias_key_correction: true
indent: 2
max_line_length: 120
pad_line_comments: 1
drop_merge_tag: true
eof_newline: true
force_array_style: block
include_document_start: true
line_ending: lf
retain_line_breaks_single: true
scan_folded_as_literal: true
trim_trailing_whitespace: true
# APM-managed / generated files use the tool's own formatting — never hand-edited.
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*/**
22 changes: 22 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
extends: default

rules:
# Inline comment spacing varies by author style — not auto-fixable
comments: disable
# Long lines are unavoidable with image digests, Traefik labels, and URLs — not auto-fixable
line-length: disable
# Let yamlfmt handle document start markers
document-start: disable
# Allow 'on:' as a mapping key in GitHub Actions workflows
truthy:
allowed-values:
- "true"
- "false"
check-keys: false

# APM-managed / generated files use the tool's own formatting — never hand-edited.
ignore: |-
apm.yml
apm.lock.yaml
apm_modules/
46 changes: 20 additions & 26 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
{
"json": {
"indentWidth": 2
},
"markdown": {
"lineWidth": 100,
"textWrap": "always"
},
"typescript": {
"lineWidth": 100,
"quoteStyle": "alwaysSingle",
"semiColons": "always"
},
"includes": [
"**/*.{css,html,json,jsonc,md,ts,tsx}"
],
"$schema": "https://dprint.dev/schemas/v0.json",
"includes": ["**/*.md"],
"excludes": [
"node_modules",
"dist",
"coverage",
".vscode",
"src/data/generated",
"public/data/generated"
"**/node_modules",
"**/CHANGELOG.md",
"**/release-notes.md",
"apm_modules/**",
".github/prompts/**",
".github/instructions/**",
".github/agents/**",
".github/chatmodes/**",
".claude/**",
".cursor/**",
".opencode/**",
".gemini/**",
".windsurf/**",
".kiro/**",
".agents/**",
".github/skills/**",
".specify/**"
],
"plugins": [
"https://plugins.dprint.dev/json-0.23.0.wasm",
"https://plugins.dprint.dev/markdown-0.23.3.wasm",
"https://plugins.dprint.dev/typescript-0.96.1.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.16.0.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.27.3.wasm"
"https://plugins.dprint.dev/markdown-0.21.1.wasm"
]
}
Loading