Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
pip install winval
From python
from winval.validate_wdl_constraints import run_winval
is_validated = run_winval(wdl_file, json_file)
From unix command-line:
python winval/validate_wdl_constraints.py --wdl <wdl_file> --json <json_file>
From python
from winval.cloud_files_validator import CloudFilesValidator
is_validated = CloudFilesValidator(args.wdl, args.json).validate()
From unix command-line:
python winval/cloud_files_validator.py --wdl <wdl_file> --json <json_file>
workflow MyWorkflow {
input {
File file
Int c
File* opt_file_1
File* opt_file_2
Array[File] files
Array[File] index_files
MyStruct struct_instance
#@wv defined(opt_file_1) <-> defined(opt_file_2)
#@wv defined(opt_file_1) -> c > 1
#@wv len(files) == len(index_files)
#@wv len(files) >= 0
#@wv len(index_files) >= 0
#@wv c <= 1 and c >= 0
#@wv suffix(file) == ".fasta"
#@wv suffix(files) <= {".bam", ".cram"}
#@wv prefix(index_files) == files
#@wv len(struct_instance['field_a']) > 0
}
...
}
struct MyStruct{
String field_a,
String field_b
}
cd <project_root>/winval
antlr4 -Dlanguage=Python3 winval.g4 -visitor -o antlr
+
,-
,*
,**
,/
,&
,|
,%
and
, or
, in
<
, <=
, ==
, >=
, >
, !=
-
: set subtraction&
: set intersection|
: is set union<=
: subsetlen()
, not()
basename()
, splitext()
(from os.path)x <-> y
: if-and-only-if logical operator (if x is true if and only if y is true)x -> y
: implies logical operator (if x is true then y should be true)defined(x)
: if x a defined variableprefix(x)
: return path prefix of String/File or list of prefixes forsuffix(x)
: return path suffix of String/File or set of suffixes for Array[String]/Array[File]FAQs
WDL workflow inputs validation
We found that winval demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.