Skip to content

Conversation

nicolaswill
Copy link
Contributor

The expected input for specifying additional files is a path to a JSON configuration file conforming to the following schema:

        schema = {
            "type": "object",
            "properties": {
                "CodeQLBundleAdditionalFiles": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "Source": {"type": "string"},
                            "Destination": {"type": "string"},
                        },
                        "required": ["Source", "Destination"],
                        "additionalProperties": False,
                    },
                    "minItems": 1,
                },
                "CodeQLBundleAdditionalCertificates": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {"Source": {"type": "string"}},
                        "required": ["Source"],
                        "additionalProperties": False,
                    },
                    "minItems": 1,
                },
            },
            "additionalProperties": True,
        }

Specification of additional certificates results in invocation of the keytool bins present in the input bundle:

        if platform.system() == "Windows":
            keytool = "tools/win64/java/bin/keytool.exe"
        elif platform.system() == "Linux":
            keytool = "tools/linux64/java/bin/keytool"
        elif platform.system() == "Darwin":
            keytool = "tools/osx64/java/bin/keytool"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants