Check expected publication push URL
This commit is contained in:
@@ -295,6 +295,11 @@ Reuse the existing Go environment tests for controls already protected there.
|
||||
|
||||
## Stage 4: Compare the optional expected push URL
|
||||
|
||||
**Completion:** Complete. `ReleaseRequest.ExpectedPushURL` and profile
|
||||
`expected_push_url` require an exact match with Git's resolved effective push
|
||||
URL before validation. Mismatches return `ErrUnexpectedPushURL` with expected
|
||||
and resolved values; `Check` ignores the publication-only expectation.
|
||||
|
||||
**Outcome:** Publication rejects a different effective destination before validation.
|
||||
|
||||
1. Add `ExpectedPushURL` and `expected_push_url`, with an empty value selecting
|
||||
|
||||
Reference in New Issue
Block a user