pub enum FixEffort {
Trivial,
Small,
Medium,
Large,
}Expand description
Coarse-grained remediation effort. Surfaces in JSON time_to_fix and SARIF
properties.timeToFix so triage dashboards can sort by severity * effort.
The four buckets are deliberately wide. Precise time estimates would invite argument; the buckets exist to separate “flip a flag” from “rewrite a job” from “renegotiate ops policy”.
Per MEMORY/.../blueteam-corpus-defense.md Section 3 / Enhancement E-3.
Variants§
Trivial
~5 minutes. Mechanical change to a single file (flip a flag, pin a SHA,
add a permissions: {} block). No structural risk.
Small
~1 hour. Refactor a step or job: split a script, add a fork-check, move a secret to an environment binding.
Medium
~1 day. Restructure a job or pipeline: introduce an environment gate, move from inline scripts to a sandboxed action, add an OIDC role.
Large
~1 week or more. Operational policy change: migrate from PATs to OIDC across an org, change branch protection model, retire a service principal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FixEffort
impl<'de> Deserialize<'de> for FixEffort
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for FixEffort
impl Eq for FixEffort
impl StructuralPartialEq for FixEffort
Auto Trait Implementations§
impl Freeze for FixEffort
impl RefUnwindSafe for FixEffort
impl Send for FixEffort
impl Sync for FixEffort
impl Unpin for FixEffort
impl UnsafeUnpin for FixEffort
impl UnwindSafe for FixEffort
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.