Skip to content

Add support for multi-platform bundle generation and additional files/certs #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

nicolaswill
Copy link
Contributor

@nicolaswill nicolaswill commented May 14, 2024

Custom bundle creation now uses a platform-independent CodeQL base bundle and creates separate output bundles for Windows, Linux, and MacOS. These bundles are exposed via the QLT_CODEQL_BUNDLE_PATH_WIN64, QLT_CODEQL_BUNDLE_PATH_LINUX64, and QLT_CODEQL_BUNDLE_PATH_OSX64 environment variables, with QLT_CODEQL_BUNDLE_PATH continuing to map to the bundle compatible with the runner platform.

Additional files/directories or certificates can now be specified in qlt.conf.json with 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,
        }

@nicolaswill nicolaswill force-pushed the multi-platform-bundles branch from 0fdfb26 to 3de0bb7 Compare May 14, 2024 10:43
Custom bundle creation now uses a platform-independent CodeQL base bundle and creates separate output bundles for Windows, Linux, and MacOS. These bundles are exposed via the QLT_CODEQL_BUNDLE_PATH_WIN64, QLT_CODEQL_BUNDLE_PATH_LINUX64, and QLT_CODEQL_BUNDLE_PATH_OSX64 environment variables, with QLT_CODEQL_BUNDLE_PATH continuing to map to the bundle compatible with the runner platform.
@nicolaswill nicolaswill force-pushed the multi-platform-bundles branch from e3080d2 to 0fc5ed3 Compare May 14, 2024 10:56
@nicolaswill nicolaswill merged commit 4d5cb8a into advanced-security:main May 14, 2024
12 checks passed
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.

1 participant