pub struct GitlabParser;Expand description
GitLab CI YAML parser.
Parses .gitlab-ci.yml files into an AuthorityGraph. The authority model:
- Each job is a
Stepnode. CI_JOB_TOKENis a global implicitIdentity(always present, scope=broad).secrets:entries emitSecretnodes withHasAccessToedges.id_tokens:entries emit OIDCIdentitynodes.variables:entries with credential-pattern names emitSecretnodes.image:andservices:emitImagenodes withUsesImageedges.include:andextends:mark the graphPartial.rules: if: merge_request_eventandonly: merge_requestssetMETA_TRIGGER.
Trait Implementations§
Source§impl PipelineParser for GitlabParser
impl PipelineParser for GitlabParser
fn platform(&self) -> &str
fn parse( &self, content: &str, source: &PipelineSource, ) -> Result<AuthorityGraph, TauditError>
Auto Trait Implementations§
impl Freeze for GitlabParser
impl RefUnwindSafe for GitlabParser
impl Send for GitlabParser
impl Sync for GitlabParser
impl Unpin for GitlabParser
impl UnsafeUnpin for GitlabParser
impl UnwindSafe for GitlabParser
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
Mutably borrows from an owned value. Read more