Skip to content

Commit 7432f63

Browse files
committed
feat: Initial setup with EBIOS RM Light structure, tools, and public configuration
0 parents  commit 7432f63

34 files changed

Lines changed: 710 additions & 0 deletions

.github/CODEOWNERS

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

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Bug
2+
body:
3+
- type: textarea
4+
attributes: {label: Steps to reproduce}
5+
- type: input
6+
attributes: {label: SHA/Tag}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Bug report
3+
about: Report a defect
4+
labels: bug
5+
---
6+
**What happened**
7+
**Steps to reproduce**
8+
**Expected**
9+
**Logs/Screenshots**
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Feature request
3+
about: Propose an improvement
4+
labels: enhancement
5+
---
6+
**Problem to solve**
7+
**Proposed change**
8+
**Impact on docs/tests**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Objective
2+
## Test plan
3+
## Checklist
4+
- [ ] Lint/Type checks pass
5+
- [ ] CI green

.github/pull_request_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Summary
2+
## Changes
3+
## Tests / Docs
4+
## Checklist
5+
- [ ] No patient/PII data
6+
- [ ] CSV is source of truth

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
jobs:
7+
qa:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v5
12+
with: {python-version: '3.11'}
13+
- run: python -m pip install -U pip && pip install ruff black mypy pandas openpyxl
14+
- run: ruff check .
15+
- run: black --check .
16+
- run: mypy src
17+
build-artifacts:
18+
needs: qa
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v5
23+
with: {python-version: '3.11'}
24+
- run: pip install pandas openpyxl
25+
- run: python tools/csv2xlsx.py
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
name: risk-matrix-xlsx
29+
path: docs/reports/risk_matrix.xlsx
30+
security:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- run: bash tools/sec_checks.sh

.github/workflows/csv2xlsx.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: csv-to-xlsx
2+
on:
3+
push:
4+
paths:
5+
- '02-Matrices/**/*.csv'
6+
- 'tools/csv2xlsx.py'
7+
- '.github/workflows/csv2xlsx.yml'
8+
workflow_dispatch:
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with: { python-version: '3.11' }
16+
- run: python -m pip install --upgrade pip
17+
- run: pip install pandas openpyxl
18+
- run: python tools/csv2xlsx.py
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: risk-matrix-xlsx
22+
path: docs/reports/risk_matrix.xlsx

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
description: 'vX.Y.Z'
7+
required: true
8+
jobs:
9+
cut:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.11'
16+
- run: pip install pandas openpyxl
17+
- run: python tools/csv2xlsx.py
18+
- uses: softprops/action-gh-release@v2
19+
with:
20+
tag_name: ${{ github.event.inputs.tag }}
21+
files: docs/reports/risk_matrix.xlsx
22+
generate_release_notes: true
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore generated files
2+
docs/reports/*.xlsx
3+
4+
# Ignore critical Intellectual Property (IP) files
5+
# These files should not be public, but are required locally for the methodology.
6+
02-Matrices/risk_matrix.csv
7+
03-Methodology/ebios-rm-light.md

0 commit comments

Comments
 (0)