Skip to content
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

Step run func #873

Merged
merged 8 commits into from
Jun 22, 2023
Merged

Step run func #873

merged 8 commits into from
Jun 22, 2023

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Jun 21, 2023

Checklist

Version

Requires a NO version update

Context

The goal of this PR is to leave less room for engineers to accidentally break the secret redaction on the step run logs.

One change is discarding the usage of (and removing) tools.EnvmanRun, as the rest of its features are only used when running a step, but at the same time the tools.EnvmanRun seemed to be a generic function, which is open for many configurations.

Another change is testing if the root writer of the stepoutput.Writer is a secret redactor when secrets are provided.

Resolves: https://bitrise.atlassian.net/browse/CI-1102

Changes

  • Remove EnvmanRun and move it's logic to WorkflowRunner.executeStep
  • Use go-utils command for running plugins
  • Move activateStepLibStep from run_utils.go to step_activator.go (as it is used only from this file)
  • Test if the root writer of the stepoutput.Writer is a secret redactor when secrets are provided

@godrei godrei marked this pull request as ready for review June 22, 2023 07:39
tothszabi
tothszabi previously approved these changes Jun 22, 2023
@godrei godrei merged commit 4b89996 into master Jun 22, 2023
2 checks passed
@godrei godrei deleted the step-run-func branch June 22, 2023 13:57
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.

2 participants