pub enum ParseMode {
Legacy,
Strict,
}Expand description
Parse strictness.
The merge gate must parse operator-authored workflows in
ParseMode::Strict: a silently-dropped permissions:, concurrency:,
or services: key is a security gap (the workflow appears to parse cleanly
while quietly losing semantics). Existing non-gate callers stay on
ParseMode::Legacy until they explicitly opt in — see the non-goals of
https://github.com/hyprstream/hyprstream/issues/1432.
Variants§
Legacy
Legacy / lenient compatibility mode (the historical Workflow::parse
behavior). Unknown top-level, job-level, and step-level YAML keys are
silently ignored. Use only for callers that must tolerate arbitrary
upstream GitHub Actions YAML; do not use this for the merge gate.
Strict
Strict / fail-closed mode. Unknown keys at the top level, inside a job,
or inside a step are rejected with
WorkerError::WorkflowParseError. This is
the mode the gate’s workflow loader uses by default.
Note: this rejects unknown structural keys — it does not claim
full GitHub Actions compatibility. Unsupported-but-recognized GHA
features (matrix, services, permissions, concurrency,
expression evaluation, forge-specific checks) are deliberately out of
scope (#1432 Phase 2).
Trait Implementations§
impl Copy for ParseMode
impl Eq for ParseMode
impl StructuralPartialEq for ParseMode
Auto Trait Implementations§
impl Freeze for ParseMode
impl RefUnwindSafe for ParseMode
impl Send for ParseMode
impl Sync for ParseMode
impl Unpin for ParseMode
impl UnsafeUnpin for ParseMode
impl UnwindSafe for ParseMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more