devops-infra/Container Structure Test
GitHub Action running Google Container Structure Tests against a container image
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| image | Image to test (required unless using image_from_oci_layout) | no | — |
| config | Path(s) to test config file(s), space or newline-separated | yes | — |
| driver | Driver to use when running tests (docker, tar, host) | no | docker |
| platform | Platform to test (e.g. linux/amd64, linux/arm64) | no | — |
| pull | Force pull the image before running tests | no | false |
| save | Preserve created containers after test run | no | false |
| quiet | Suppress test output | no | false |
| no_color | Disable colorized output | no | false |
| output | Output format for the test results (text, json, junit) | no | text |
| test_report | Write test results to this file path (text output is converted to json by CST) | no | — |
| junit_suite_name | Name for the JUnit test suite (only used when output is junit) | no | — |
| metadata | Path to image metadata file | no | — |
| runtime | Runtime to use with the docker driver | no | — |
| force | Force run of host driver without interactive prompt | no | false |
| image_from_oci_layout | Path to OCI image layout directory to test against (mutually exclusive with image) | no | — |
| default_image_tag | Default image tag when OCI layout lacks a ref annotation (requires image_from_oci_layout) | no | — |
| ignore_ref_annotation | Ignore org.opencontainers.image.ref.name annotation when loading OCI layout | no | false |
| debug | Enable verbose debug logging | no | false |
Outputs
| name | description |
|---|---|
| total | Total number of tests executed |
| passed | Number of tests that passed |
| failed | Number of tests that failed |
| exit_code | Exit code returned by container-structure-test |