Skip to content

Commit 42afa91

Browse files
authored
Add markdownlint workflow (#693)
* add markdownlint config to project * fix config * ignore node modules * `markdownlint --fix docs` * `markdownlint --fix .` * add markdownlint workflow to check changes
1 parent 9068cbb commit 42afa91

File tree

84 files changed

+591
-672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+591
-672
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Lint Markdown (Changes)"
2+
on:
3+
push:
4+
paths:
5+
- '**/*.md'
6+
- .github/workflows/lint_md_changes.yml
7+
pull_request:
8+
paths:
9+
- '**/*.md'
10+
- .github/workflows/lint_md_changes.yml
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- uses: tj-actions/changed-files@v44
20+
id: changed-files
21+
with:
22+
files: '**/*.md'
23+
separator: ","
24+
- uses: DavidAnson/markdownlint-cli2-action@v16
25+
if: steps.changed-files.outputs.any_changed == 'true'
26+
with:
27+
globs: ${{ steps.changed-files.outputs.all_changed_files }}
28+
separator: ","
29+
config: .markdownlint.yml
30+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,4 @@ dmypy.json
129129
.pyre/
130130
ssvc2-applier-wip.xlsx
131131
_version.py
132+
node_modules

.markdownlint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
default: true
2+
# disable noisy rules
3+
# 0004 Unordered List style
4+
# Force dash style for unordered lists
5+
MD004:
6+
style: "dash"
7+
# 013 Line length
8+
# Disabled because we have a lot of long lines. We should fix this eventually.
9+
MD013: false
10+
# 033 Inline HTML
11+
# Disabled because we use inline HTML (<br/> in table cells for example)
12+
MD033: false
13+
# MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md040.md
14+
MD040: false
15+
# 041 First line in file should be a top level header
16+
# Disabled because we use `include-markdown` plugin for merging markdown files
17+
MD041: false
18+
# 046 Code block style
19+
# Disabled because mkdocs-material uses indented blocks for admonitions
20+
MD046: false
21+
# 049 emphasis style
22+
# Force asterisk style for emphasis
23+
MD049:
24+
style: "asterisk"
25+
# 050 strong style
26+
# Force asterisk style for strong
27+
MD050:
28+
style: "asterisk"
29+

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# How to contribute
22

33
Thanks for your help on improving our stakeholder-specific vulnerability categorization work.
4-
To account for different stakeholder perspectives, we benefit from a diverse group of contributors.
4+
To account for different stakeholder perspectives, we benefit from a diverse group of contributors.
55

66
Please see our project documentation in the [wiki](https://github.com/CERTCC/SSVC/wiki) that accompanies this repository
77
for more information on how you can contribute to the project.
88

99
## Licenses
1010

1111
See [LICENSE](https://github.com/CERTCC/SSVC/blob/main/LICENSE)
12-
12+
1313
## Questions
1414

1515
If you have any questions, an [issue](https://github.com/CERTCC/SSVC/issues) or
1616
[discussion](https://github.com/CERTCC/SSVC/discussions) is the best way to get in touch with us.
17-

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SSVC aims to avoid one-size-fits-all solutions in favor of a modular decision-ma
1010
SSVC is mostly conceptual tools for vulnerability management.
1111
These conceptual tools (how to make decisions, what should go into a decision, how to document and communicate decisions clearly, etc.) are described here.
1212

13-
**Note:** This repository contains the _content_ for the main SSVC documentation hosted at
13+
**Note:** This repository contains the *content* for the main SSVC documentation hosted at
1414

1515
## [https://certcc.github.io/SSVC/](https://certcc.github.io/SSVC/)
1616

@@ -19,7 +19,6 @@ These conceptual tools (how to make decisions, what should go into a decision, h
1919

2020
---
2121

22-
2322
# What's here
2423

2524
Here's a quick overview of the main directories and files in this repository.
@@ -34,7 +33,7 @@ See [`project_docs/README.md`](project_docs/README.md) for more info.
3433
Directory with SSVC calculator using D3 graph.
3534
See [`ssvc-calc/README.md`](docs/ssvc-calc/README.md) for more info.
3635

37-
A demo version of `ssvc-calc` can be found at https://certcc.github.io/SSVC/ssvc-calc/
36+
A demo version of `ssvc-calc` can be found at <https://certcc.github.io/SSVC/ssvc-calc/>
3837

3938
## `/pdfs/*`
4039

@@ -82,7 +81,6 @@ The two methods just loop through their respective lookup tables until
8281
they hit a match, then return the outcome. Maybe not the best implementation,
8382
but it worked well enough for what was needed at the time.
8483

85-
8684
## Local development
8785

8886
Install prerequisites:
@@ -97,11 +95,11 @@ Start a local server:
9795
mkdocs serve
9896
```
9997

100-
Navigate to http://localhost:8001/ to see the site.
98+
Navigate to <http://localhost:8001/> to see the site.
10199

102100
(Hint: You can use the `--dev-addr` argument with mkdocs to change the port, e.g. `mkdocs serve --dev-addr localhost:8000`)
103101

104-
## Run tests
102+
## Run tests
105103

106104
We include a few tests for the `ssvc` module.
107105

@@ -121,9 +119,6 @@ pip install pytest # if you haven't already
121119
pytest # should find tests in src/test/*
122120
```
123121

124-
125-
126-
127122
## Contributing
128123

129124
- [SSVC Community Engagement](https://certcc.github.io/SSVC/about/contributing/) has more detail on how to contribute to the project.
@@ -147,5 +142,5 @@ To reference SSVC in an academic publication, please refer to the version presen
147142

148143
## References
149144

150-
1. Spring, J., Hatleback, E., Householder, A., Manion, A., and Shick, D. "Prioritizing Vulnerability Response: A Stakeholder-Specific Vulnerability Categorization." White Paper, Software Engineering Institute, Carnegie Mellon University (2019). https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=636379
151-
2. Spring, J., Hatleback, E., Householder, A., Manion, A., and Shick, D. "Towards Improving CVSS." White Paper, Software Engineering Institute, Carnegie Mellon University (2018). https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=538368
145+
1. Spring, J., Hatleback, E., Householder, A., Manion, A., and Shick, D. "Prioritizing Vulnerability Response: A Stakeholder-Specific Vulnerability Categorization." White Paper, Software Engineering Institute, Carnegie Mellon University (2019). <https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=636379>
146+
2. Spring, J., Hatleback, E., Householder, A., Manion, A., and Shick, D. "Towards Improving CVSS." White Paper, Software Engineering Institute, Carnegie Mellon University (2018). <https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=538368>

data/schema/README.MD

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# SSVC decision tree schemas
1+
# SSVC decision tree schemas
22

3-
Two JSON schema files are embedded here that provide schema information for
3+
Two JSON schema files are embedded here that provide schema information for
44

55
1. Full Decision tree schema for represeting an SSVC decision tree for a Role
66
2. Computed SSVC score schema of a vulnerability at a point of time, optionally includes the tree used in making the decision.
7-
8-
9-
10-
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
# Sample JSON files (Archived)
22

3-
4-
There are a few examples of the old schema validated JSON files here, please follow the latest schema in [Decision_Point_Value_Selection.schema.json ](../../schema/current/Decision_Point_Value_Selection.schema.json)
5-
6-
7-
8-
3+
There are a few examples of the old schema validated JSON files here, please follow the latest schema in [Decision_Point_Value_Selection.schema.json](../../schema/current/Decision_Point_Value_Selection.schema.json)

data/schema_examples/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# Sample JSON files
22

3-
43
There is a sample JSON file that provides an example of a hypothetical CVE [CVE-1900-1234](CVE-1900-1234-Decision_Point_Value_Selection.json) that adheres to the [JSON schema](../schema/)
54

65
The old JSON files are in the [archive](./archive/) folder
7-
8-
9-
10-

docs/_includes/helping_out.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,52 @@ We welcome your feedback and contributions to SSVC. Here are some ways you can g
44

55
<div class="grid cards" markdown>
66

7-
- :material-message-question: _Ask a question_
7+
- :material-message-question: *Ask a question*
88

99
---
1010

11-
If you have a specific question for the SSVC team, please feel free to
11+
If you have a specific question for the SSVC team, please feel free to
1212
[Ask a Question](https://github.com/CERTCC/SSVC/issues/new?template=question.md).
13-
13+
1414
Questions of more general interest to the community of SSVC users might fit better in the
1515
[Q&A](https://github.com/CERTCC/SSVC/discussions/categories/q-a) section of the
1616
[Discussion](https://github.com/CERTCC/SSVC/discussions) area.
1717

18-
- :fontawesome-solid-bug: _Report a problem_
18+
- :fontawesome-solid-bug: *Report a problem*
1919

2020
---
2121

2222
If you find a problem with the SSVC documentation, the methodology, or accompanying code, we
2323
welcome your [Bug Reports](https://github.com/CERTCC/SSVC/issues/new?template=bug_report.md)
24-
25-
- :material-lightbulb-on: _Suggest an improvement_
24+
25+
- :material-lightbulb-on: *Suggest an improvement*
2626

2727
---
2828
Got an idea for how to make SSVC better? We'd love to hear it! Please submit your
2929
[Feature Requests](https://github.com/CERTCC/SSVC/issues/new?template=feature_request.md)
30-
31-
- :fontawesome-regular-comments: _Join the conversation_
30+
31+
- :fontawesome-regular-comments: *Join the conversation*
3232

3333
---
3434

3535
More in-depth conversations that might not be actionable as issues are found in the
3636
[Discussions](https://github.com/CERTCC/SSVC/discussions) area.
3737

38-
- :material-binoculars: _See what we're working on_
38+
- :material-binoculars: *See what we're working on*
3939

4040
---
4141

4242
We manage the SSVC development effort via Github [Issues](https://github.com/CERTCC/SSVC/issues) and
43-
[Pull Requests](https://github.com/CERTCC/SSVC/pulls).
43+
[Pull Requests](https://github.com/CERTCC/SSVC/pulls).
4444
Drop by and see what we're working on, or leave a comment to let us know what you're interested in.
4545

46-
- :material-hub: _Get more involved_
46+
- :material-hub: *Get more involved*
4747

4848
---
4949

5050
Want more information about engaging as a collaborator? Check out the [SSVC Project Wiki](https://github.com/CERTCC/SSVC/wiki)
51-
52-
</div>
5351

52+
</div>
5453

5554
!!! tip "Footer Icons"
5655

@@ -60,4 +59,3 @@ We welcome your feedback and contributions to SSVC. Here are some ways you can g
6059

6160
If you are new to contributing to open source projects on Github, we've assembled some pointers
6261
to help you get started in the [Github Tips for SSVC contributors](https://github.com/CERTCC/SSVC/wiki/Github-Tips-for-SSVC-contributors)
63-

docs/about/acknowledgements.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ of this report: Art Manion, Madison Oliver, and Deana Shick.
55

66
The authors thank the [contributors](https://github.com/CERTCC/SSVC/graphs/contributors) to the
77
[SSVC project](https://github.com/CERTCC/SSVC) on Github as well as the following individuals for helpful comments on
8-
prior drafts (listed in alphabetical order):
9-
Muhammad Akbar,
8+
prior drafts (listed in alphabetical order):
9+
Muhammad Akbar,
1010
Will Dormann,
1111
Manish Gaur,
1212
Ralph Langer,
@@ -23,4 +23,3 @@ Anonymous WEIS reviewers;
2323
Various staff members and analysts at CERT/CC, CISA, McAfee, and VMWare;
2424
FIRST CVSS SIG and EPSS SIG members;
2525
and others who wish to remain anonymous.
26-

0 commit comments

Comments
 (0)