probeArtifact

get_container_most_recent_image_vulnerabilities_occurences

Does the most recent tag have any severe or critical vulnerabilities.

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosgcp.artifact.probes
Nameget_container_most_recent_image_vulnerabilities_occurences
Returnmapping

Usage

JSON

{
  "name": "get-container-most-recent-image-vulnerabilities-occurences",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.artifact.probes",
    "func": "get_container_most_recent_image_vulnerabilities_occurences",
    "arguments": {
      "repository": "",
      "package_name": ""
    }
  }
}

YAML

name: get-container-most-recent-image-vulnerabilities-occurences
provider:
  arguments:
    package_name: ""
    repository: ""
  func: get_container_most_recent_image_vulnerabilities_occurences
  module: chaosgcp.artifact.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
repositorystringYesRepositoryName of the repository
package_namestringYesContainer NameName of the container in the repository
kindstringVULNERABILITYNoOccurence KindKind of occurences to filter for

Signature

def get_container_most_recent_image_vulnerabilities_occurences(
        repository: str,
        package_name: str,
        kind: str = 'VULNERABILITY',
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass