From 05ce75f7fec34c9fa94a0a89b55695ae3f2c4211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 16 Aug 2017 17:39:58 +0800 Subject: [PATCH] Update manifest --- MANIFEST.json | 20 ++++++++++++++++++++ validate_all.sh | 8 ++++++++ 2 files changed, 28 insertions(+) diff --git a/MANIFEST.json b/MANIFEST.json index cd995d3..b1d6ed1 100644 --- a/MANIFEST.json +++ b/MANIFEST.json @@ -1,5 +1,10 @@ { "taxonomies": [ + { + "version": 1, + "name": "accessnow", + "description": "Access Now" + }, { "version": 1, "name": "admiralty-scale", @@ -10,6 +15,16 @@ "name": "adversary", "description": "An overview and description of the adversary infrastructure." }, + { + "version": 1, + "name": "analyst-assessment", + "description": "" + }, + { + "version": 1, + "name": "binary-class", + "description": "" + }, { "version": 1, "name": "circl", @@ -20,6 +35,11 @@ "name": "csirt_case_classification", "description": "FIRST CSIRT Case Classification." }, + { + "version": 1, + "name": "cssa", + "description": "" + }, { "version": 1, "name": "de-vs", diff --git a/validate_all.sh b/validate_all.sh index e765da8..d15d106 100755 --- a/validate_all.sh +++ b/validate_all.sh @@ -12,6 +12,14 @@ if ! [ $diffs -eq 0 ]; then exit 1 fi +directories=`ls -d */ | wc -w` +manifest_entries=`cat MANIFEST.json | jq '.taxonomies | length'` + +if ! [ $directories -eq $manifest_entries ]; then + echo "MANIFEST isn't up-to-date." + exit 1 +fi + for dir in */machinetag.json do echo -n "${dir}: "