Introduce API for adding new platform hub compliance policy#406
Open
denys-octopus wants to merge 1 commit intomainfrom
Open
Introduce API for adding new platform hub compliance policy#406denys-octopus wants to merge 1 commit intomainfrom
denys-octopus wants to merge 1 commit intomainfrom
Conversation
denys-octopus
commented
Mar 6, 2026
| ScopeRego string `json:"ScopeRego" validate:"required,notblank"` | ||
| ConditionsRego string `json:"ConditionsRego" validate:"required,notblank"` | ||
| ViolationReason string `json:"ViolationReason,omitempty"` | ||
| ViolationAction string `json:"ViolationAction" validate:"required,notblank"` |
Contributor
Author
There was a problem hiding this comment.
I was thinking to have a dedicated type for ViolationAction, because it can have only two values "Block" and "Warn", but decided to keep it a string, so we can add new actions in Octopus Deploy without breaking go-client
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.
Background
We want to allow user to manage compliance policies via go-client.
Part of MAS-6 (I want to create a new policy in Platform Hub)
Result
This PR introduces new package with exposed function to add new compliance policy. Other functionalities will be added in next pull requests.