- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
		
			
				
	
	
		
			24 lines
		
	
	
		
			618 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			618 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "name": "internal-only",
 | 
						|
  "policyPath": "docs/examples/policies/internal-only.yaml",
 | 
						|
  "findings": [
 | 
						|
    {
 | 
						|
      "findingId": "library:pkg/internal-app@2.0.0",
 | 
						|
      "severity": "Medium",
 | 
						|
      "source": "GHSA",
 | 
						|
      "environment": "internal"
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "findingId": "library:pkg/kev-component@3.1.4",
 | 
						|
      "severity": "High",
 | 
						|
      "source": "NVD",
 | 
						|
      "tags": ["kev"],
 | 
						|
      "environment": "internal"
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "expectedDiffs": [
 | 
						|
    { "findingId": "library:pkg/internal-app@2.0.0", "status": "RequiresVex" },
 | 
						|
    { "findingId": "library:pkg/kev-component@3.1.4", "status": "RequiresVex" }
 | 
						|
  ]
 | 
						|
}
 |