CodeArtifacts

Code artifacts are source code artifacts and build artifacts used in a repository analysis or a pull request review.

AmazonCode ReviewSecurityDevOpsMachine LearningDeveloper Tools

Properties

Name Type Description
SourceCodeArtifactsObjectKey object
BuildArtifactsObjectKey object
View JSON Schema on GitHub

JSON Schema

amazon-codeguru-reviewer-code-artifacts-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeguru-reviewer/refs/heads/main/json-schema/amazon-codeguru-reviewer-code-artifacts-schema.json",
  "title": "CodeArtifacts",
  "description": "<p>Code artifacts are source code artifacts and build artifacts used in a repository analysis or a pull request review.</p> <ul> <li> <p>Source code artifacts are source code files in a Git repository that are compressed into a .zip file.</p> </li> <li> <p>Build artifacts are .jar or .class files that are compressed in a .zip file.</p> </li> </ul>",
  "type": "object",
  "properties": {
    "SourceCodeArtifactsObjectKey": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SourceCodeArtifactsObjectKey"
        },
        {
          "description": "The S3 object key for a source code .zip file. This is required for all code reviews."
        }
      ]
    },
    "BuildArtifactsObjectKey": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BuildArtifactsObjectKey"
        },
        {
          "description": "The S3 object key for a build artifacts .zip file that contains .jar or .class files. This is required for a code review with security analysis. For more information, see <a href=\"https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/working-with-cicd.html\">Create code reviews with GitHub Actions</a> in the <i>Amazon CodeGuru Reviewer User Guide</i>."
        }
      ]
    }
  },
  "required": [
    "SourceCodeArtifactsObjectKey"
  ]
}