Merge pull request #515 from cisagov/improvement/fix-list-displays
Generate individual software list files instead of a single software listpull/513/head^2
commit
daddbc208b
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
|
||||||
|
# This script is used to do the following: |
||||||
|
# - Normalize each of the data/cisagov_*.yml files. |
||||||
|
# - Update the comprehensive data/cisagov.yml file. |
||||||
|
# - Generate each software_lists/software_list_*.md file from its respective |
||||||
|
# data/cisagov_*.yml file. |
||||||
|
|
||||||
|
set -o nounset |
||||||
|
set -o errexit |
||||||
|
set -o pipefail |
||||||
|
|
||||||
|
OUTPUT_DIRECTORY=software_lists |
||||||
|
TEMPLATE_FILE=config/SOFTWARE-LIST.tpl.md |
||||||
|
|
||||||
|
echo Normalize individual cisagov YAML files |
||||||
|
for file in data/cisagov_*.yml; do |
||||||
|
echo " $file..." |
||||||
|
normalize-yml --cisagov-format "$file" > "$file".tmp |
||||||
|
mv --force "$file".tmp "$file" |
||||||
|
done |
||||||
|
|
||||||
|
echo Update the comprehensive cisagov YAML file |
||||||
|
normalize-yml --cisagov-format data/cisagov_*.yml > data/cisagov.yml |
||||||
|
|
||||||
|
echo Generate Markdown files from the individual cisagov YAML files |
||||||
|
for file in data/cisagov_*.yml; do |
||||||
|
echo " $file..." |
||||||
|
# Convert the file path data/cisagov_*.yml to software_list_*.md |
||||||
|
md_file=$(echo "$file" | sed 's/data\/cisagov_\(.\+\)yml/software_list_\1md/g') |
||||||
|
normalize-yml "$file" > "$file.tmp" |
||||||
|
yml2md "$file.tmp" > "$md_file.tmp" |
||||||
|
md-from-template $TEMPLATE_FILE "$md_file.tmp" > "$OUTPUT_DIRECTORY/$md_file" |
||||||
|
done |
@ -0,0 +1,25 @@ |
|||||||
|
# CISA Log4j (CVE-2021-44228) Affected Vendor & Software Lists # |
||||||
|
|
||||||
|
## Contributing Guidelines ## |
||||||
|
|
||||||
|
We welcome contributions! Please see [`CONTRIBUTING.md`](../CONTRIBUTING.md) for |
||||||
|
details. |
||||||
|
|
||||||
|
### Creating a pull request ### |
||||||
|
|
||||||
|
Instructions for creating a pull request using the GitHub Web UI can be found |
||||||
|
in [`PULL-EXAMPLE.md`](../PULL-EXAMPLE.md). |
||||||
|
|
||||||
|
## Software Lists ## |
||||||
|
|
||||||
|
To view the full lists of vendors & software click below: |
||||||
|
|
||||||
|
[0-9](software_list_Non-Alphabet.md) [A](software_list_A.md) [B](software_list_B.md) |
||||||
|
[C](software_list_C.md) [D](software_list_D.md) [E](software_list_E.md) |
||||||
|
[F](software_list_F.md) [G](software_list_G.md) [H](software_list_H.md) |
||||||
|
[I](software_list_I.md) [J](software_list_J.md) [K](software_list_K.md) |
||||||
|
[L](software_list_L.md) [M](software_list_M.md) [N](software_list_N.md) |
||||||
|
[O](software_list_O.md) [P](software_list_P.md) [Q](software_list_Q.md) |
||||||
|
[R](software_list_R.md) [S](software_list_S.md) [T](software_list_T.md) |
||||||
|
[U](software_list_U.md) [V](software_list_V.md) [W](software_list_W.md) |
||||||
|
[X](software_list_X.md) [Y](software_list_Y.md) [Z](software_list_Z.md) |
Loading…
Reference in new issue