This component provides Git integration, enabling the execution of fundamental Git commands within integration flows.
-----BEGIN RSA PRIVATE KEY-----
MBJH8a7JHVHg67JKB98yNB7y8776867dsfaAUG925ZwqePrSWDL8ikHB
{...}
jnJHBGH68t76ghvdsaHJVH66657VCHHcEZD+aVRKDQwjIosXR8r88b==
-----END RSA PRIVATE KEY-----
ssh-rsa AAAAB3NzaC1yc2EAAAAD{.....}kf0vBMStV user@exampleHost
Please Note: Your public SSH key must be added to your Git provider (e.g., GitHub, GitLab) before using this component.
git@github.com).git@github.com:elasticio/git-protocol-component.git, this value would be elasticio/git-protocol-component.git.The only field available on Platform UI to provide a secure input is a ‘PasswordFieldView’ view class. The problem is that it replaces new line characters with spaces. This method modifies the key in the following way. E.g. the key is:
-----BEGIN RSA PRIVATE KEY-----
BASE64_ENCODED_DATA_LINE_1
BASE64_ENCODED_DATA_LINE_2
BASE64_ENCODED_DATA_LINE_3
-----END RSA PRIVATE KEY-----
The platform will then transform the key so:
-----BEGIN RSA PRIVATE KEY----- BASE64_ENCODED_DATA_LINE_1 BASE64_ENCODED_DATA_LINE_2 BASE64_ENCODED_DATA_LINE_3 -----END RSA PRIVATE KEY-----
The code in the component replaces all the space characters (except for in the header and footer lines) with new line character
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
This action executes a sequence of Git commands: clone, checkout, add, rm (if specified), commit, and push.
.json files for improved human readability using standard indentation, which enhances the clarity of diffs in version control.File Source configuration.
797bb70d-1590-4136-b9db-2abb01983d92) or the full Maester URL.git rm -r ...).This action retrieves files from a specified branch in a Git repository and stores them in Maester, the elastic.io internal object storage.
.).The action outputs an array of metadata objects, where each object represents a file retrieved from the repository.
This component utilizes fast-glob for matching file patterns. The following examples illustrate common usage:
'**': Matches all files across all subdirectories.'**/*.js': Matches all files with a .js extension.'component.json': Matches a single file in the root directory.'lib/**': Matches all files within the lib directory.Create Commit action can only be used on repositories that have been initialized and contain at least one existing commit.push operation. If a parallel execution pushes a new commit to the remote branch while another execution is in progress, the latter may fail with a ‘non-fast-forward’ error because its local history is now outdated. This component currently does not support automatic rebasing or retries in such scenarios.Click here to learn more about the elastic.io iPaaS