Skip to content

Commit c3d19a4

Browse files
committed
feat: harden fiscal logic and repository governance
1 parent 4e18a6e commit c3d19a4

34 files changed

Lines changed: 243 additions & 230 deletions

.editorconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ trim_trailing_whitespace = true
1010
indent_style = space
1111
indent_size = 2
1212

13-
[*.{sh,bat,ps1}]
13+
[*.sh]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.{bat,cmd,ps1}]
18+
end_of_line = crlf
1419
indent_style = space
1520
indent_size = 2

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* text=auto eol=lf
2+
3+
*.bat text eol=crlf
4+
*.cmd text eol=crlf
5+
*.ps1 text eol=crlf
6+
7+
*.png binary
8+
*.jpg binary
9+
*.jpeg binary
10+
*.gif binary
11+
*.webp binary
12+
*.ico binary
13+
*.pdf binary

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* @TheStreamCode
2+
3+
/src/lib/calculations/ @TheStreamCode
4+
/src/lib/fiscal-data.ts @TheStreamCode
5+
/docs/ADRs/ @TheStreamCode
6+
/.github/ @TheStreamCode

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Security report
4-
url: mailto:info@mikesoft.it?subject=EasyPIVA%20Security%20Report
5-
about: Segnala vulnerabilità o problemi privacy seguendo SECURITY.md.
4+
url: https://github.com/TheStreamCode/easypiva/security/advisories/new
5+
about: Segnala privatamente vulnerabilità o problemi privacy seguendo SECURITY.md.
66
- name: Contatto operativo
77
url: mailto:info@mikesoft.it?subject=EasyPIVA%20Repository
88
about: Usa questo canale per comunicazioni operative non legate alla sicurezza.

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: npm
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
day: monday
9+
time: '06:00'
10+
timezone: Europe/Rome
11+
open-pull-requests-limit: 0
12+
13+
- package-ecosystem: github-actions
14+
directory: /
15+
schedule:
16+
interval: monthly
17+
open-pull-requests-limit: 0

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818

1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v7
21+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2222

2323
- name: Setup Node.js
24-
uses: actions/setup-node@v6
24+
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
2525
with:
26-
node-version: 20
26+
node-version-file: .nvmrc
2727
cache: npm
2828

2929
- name: Install dependencies

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@ concurrency:
1414
jobs:
1515
dependency-review:
1616
runs-on: ubuntu-latest
17-
# No actor filter. Skipping Dependabot made this a no-op: every dependency
18-
# change in this repo comes from Dependabot, and because the job is a required
19-
# status check, a `skipped` run *satisfies* it -- the gate reported green while
20-
# reviewing nothing. On a public repository the dependency-review API is
21-
# readable with the Dependabot token, so the job runs for those PRs too.
2217
steps:
2318
- name: Checkout repository
24-
uses: actions/checkout@v7
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2520

2621
- name: Dependency review
27-
uses: actions/dependency-review-action@v5.0.0
22+
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Install dependencies with `npm ci`. npm is the canonical package manager for thi
1919

2020
## Tech Stack
2121

22-
- React 19, TypeScript 5, Vite 6.
22+
- React 19, React Router 8, TypeScript 6, Vite 6.
2323
- Tailwind CSS v4 with `@tailwindcss/vite`.
2424
- Base UI / shadcn-style primitives in `components/ui/`.
2525
- Zustand for local client state.
@@ -66,6 +66,7 @@ docs/ # Architecture, privacy, fiscal assumptions
6666
## GitHub Repository Hygiene
6767

6868
- Keep `.github/workflows/ci.yml`, `.github/dependabot.yml`, and `.github/workflows/dependency-review.yml` aligned with `package.json` scripts.
69+
- Keep Dependabot version updates disabled with `open-pull-requests-limit: 0`; security updates remain enabled and require maintainer review.
6970
- Update `docs/repository-governance.md` when repository settings, branch protection recommendations, or supply-chain policy change.
7071
- Use the PR template checklist for maintainer reviews.
7172
- Do not route security reports through public issues; follow `SECURITY.md`.

0 commit comments

Comments
 (0)