diff --git a/README.md b/README.md index a4de5a5..956cc7e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MISP Taxonomies -[![Build Status](https://travis-ci.org/MISP/misp-taxonomies.svg?branch=master)](https://travis-ci.org/MISP/misp-taxonomies) +[![Build Status](https://travis-ci.org/MISP/misp-taxonomies.svg?branch=main)](https://travis-ci.org/MISP/misp-taxonomies) MISP Taxonomies is a set of common classification libraries to tag, classify and organise information. Taxonomy allows to express the same vocabulary among a distributed set of users and organisations. @@ -197,7 +197,7 @@ The following taxonomy namespaces are reserved and used internally to MISP. # Documentation -A documentation of the taxonomies is [generated automatically](https://github.com/MISP/misp-taxonomies/blob/master/tools/machinetag.py) from the taxonomies description and available in [PDF](https://www.misp.software/taxonomies.pdf) and [HTML](https://www.misp.software/taxonomies.html). +A documentation of the taxonomies is [generated automatically](https://github.com/MISP/misp-taxonomies/blob/main/tools/machinetag.py) from the taxonomies description and available in [PDF](https://www.misp.software/taxonomies.pdf) and [HTML](https://www.misp.software/taxonomies.html). # How to contribute your taxonomy? diff --git a/tools/gen_manifest.py b/tools/gen_manifest.py index b328be5..a54fce9 100755 --- a/tools/gen_manifest.py +++ b/tools/gen_manifest.py @@ -23,7 +23,7 @@ def generateManifest(taxonomies): manifest = {} manifest['taxonomies'] = [] manifest['path'] = 'machinetag.json' - manifest['url'] = 'https://raw.githubusercontent.com/MISP/misp-taxonomies/master/' + manifest['url'] = 'https://raw.githubusercontent.com/MISP/misp-taxonomies/main/' manifest['description'] = 'Manifest file of MISP taxonomies available.' manifest['license'] = 'CC-0' now = datetime.now() diff --git a/tools/generator/misp-galaxy.py b/tools/generator/misp-galaxy.py index 3a5f652..130c6b1 100644 --- a/tools/generator/misp-galaxy.py +++ b/tools/generator/misp-galaxy.py @@ -2,7 +2,7 @@ import json import requests debug = False -galaxy_url = 'https://raw.githubusercontent.com/MISP/misp-galaxy/master/clusters/' +galaxy_url = 'https://raw.githubusercontent.com/MISP/misp-galaxy/main/clusters/' elements = ['tools.json', 'threat-actors.json'] # elements = ['threat-actor-tools.json'] diff --git a/tools/machinetag.py b/tools/machinetag.py index 57665ab..31eed16 100755 --- a/tools/machinetag.py +++ b/tools/machinetag.py @@ -88,7 +88,7 @@ def asciidoc(content=False, adoc=doc, t='title', toplevel=False): content = '=== ' + content elif t == 'namespace': content = '== ' + content + '\n' - content = "{}\n{}{} {}{}{} {}".format(content, 'NOTE: ', namespace, 'namespace available in JSON format at https://github.com/MISP/misp-taxonomies/blob/master/', + content = "{}\n{}{} {}{}{} {}".format(content, 'NOTE: ', namespace, 'namespace available in JSON format at https://github.com/MISP/misp-taxonomies/blob/main/', namespace, '/machinetag.json[*this location*]. The JSON format can be freely reused in your application', 'or automatically enabled in https://www.github.com/MISP/MISP[MISP] taxonomy.') elif t == 'description' and toplevel is True: