probeArtifact

has_most_recent_image_any_severe_or_critical_vulnerabilities

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
Namehas_most_recent_image_any_severe_or_critical_vulnerabilities
Returnbool

Usage

JSON

{
  "name": "has-most-recent-image-any-severe-or-critical-vulnerabilities",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.artifact.probes",
    "func": "has_most_recent_image_any_severe_or_critical_vulnerabilities",
    "arguments": {
      "repository": "",
      "package_name": ""
    }
  }
}

YAML

name: has-most-recent-image-any-severe-or-critical-vulnerabilities
provider:
  arguments:
    package_name: ""
    repository: ""
  func: has_most_recent_image_any_severe_or_critical_vulnerabilities
  module: chaosgcp.artifact.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
repositorystringYesRepositoryName of the repository
package_namestringYesContainer NameName of the container in the repository

Signature

def has_most_recent_image_any_severe_or_critical_vulnerabilities(
        repository: str,
        package_name: str,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> bool:
    pass