Skip to content

Commit

Permalink
fix version and name, set release date to curr date
Browse files Browse the repository at this point in the history
  • Loading branch information
cpholguera committed May 15, 2024
1 parent cef7259 commit a6fe81e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/generate_masvs_sarif.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Re-examining the YAML content for structure
masvs_parsed = yaml.safe_load(open("OWASP_MASVS.yaml"))
version = masvs_parsed["metadata"]["version"]
if version.startswith("v"):
version = version[1:]
current_date_str = datetime.now().strftime("%Y-%m-%d")

# Creating a new SARIF template for the corrected conversion
Expand All @@ -16,9 +18,10 @@
"runs": [{
"tool": {
"driver": {
"name": "OWASP Mobile Application Security Verification Standard (MASVS)",
"name": "OWASP MASVS",
"fullName": "OWASP Mobile Application Security Verification Standard (MASVS)",
"version": version,
"releaseDateUtc": "2024-05-08",
"releaseDateUtc": current_date_str,
"organization": "OWASP",
"informationUri": "https://mas.owasp.org/MASVS/",
"downloadUri": "https://github.com/OWASP/owasp-masvs/releases"
Expand Down

0 comments on commit a6fe81e

Please sign in to comment.