Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ› Fix the API req for validate#451

Merged
mcncl merged 3 commits intomainfrom
bm/fix_validate_api_requirement
Feb 28, 2025
Merged

πŸ› Fix the API req for validate#451
mcncl merged 3 commits intomainfrom
bm/fix_validate_api_requirement

Conversation

@mcncl
Copy link
Contributor

@mcncl mcncl commented Feb 27, 2025

Fix validate command; don't require API token

The validate command was still inheriting the pipeline.go requirement for config check. This meant that API keys were still needed to validate a pipeline.

Changes

This adjusts the way we validate in our validate/config.go; it allows us to pass commands which do not require API tokens

  • pkg/cmd/validation checks on the path of a command via getCommandPath, if that path is in CommandsNotRequiringToken then we don't need an API token

Improvements

This should enable us to set other commands that don't require API tokens

Copy link
Contributor

@lizrabuya lizrabuya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mcncl mcncl merged commit c2e576a into main Feb 28, 2025
1 check passed
@mcncl mcncl deleted the bm/fix_validate_api_requirement branch February 28, 2025 02:38
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