Conversation
…ibute is set seteuid/setegid before clone/fetch/open so that libgit2 runs under the target user identity, fixing safe.directory ownership checks and SSH key access. Supplementary groups are saved/restored via getgroups/setgroups to avoid polluting subsequent resources.
When revision is a bare branch name like "master", git_revparse_single
fails because only remote tracking refs exist after fetch. Now tries
the revision as-is first (works for tags, SHAs, qualified refs), then
falls back to {remote}/{revision} for bare branch names.
Add --secrets CLI parameter and agent task JSON "secrets" field to inject sensitive data (passwords, API keys) into Ruby scripts via secrets_bag(). Secrets are stripped from agent callback responses to prevent leakage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--secrets <JSON>CLI parameter forhola provisioncommandsecretsfield support in agent task JSON, with automatic stripping from callback responsessecrets_bag()Ruby DSL function for accessing injected secrets in provision scriptsinjectParamsinto reusableinjectJsonGlobalhelperTest plan
zig build testpasses (includes mruby integration test for secrets_bag + callback stripping test)hola provision script.rb --secrets '{"api_key":"sk-123"}' --output plainsecrets_bag("key"), nested access, and missing key returns nil