MCPcopy Index your code
hub / github.com/rhysd/actionlint / parseWorkflowCallEventSecret

Method parseWorkflowCallEventSecret

parse.go:582–597  ·  view source on GitHub ↗

https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_callsecrets

(name *String, n *yaml.Node)

Source from the content-addressed store, hash-verified

580
581// https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_callsecrets
582func (p *parser) parseWorkflowCallEventSecret(name *String, n *yaml.Node) *WorkflowCallEventSecret {
583 ret := &WorkflowCallEventSecret{Name: name}
584
585 for e := range p.parseMappingAt("secret of workflow_call event", n, true, true) {
586 switch e.id {
587 case "description":
588 ret.Description = p.parseString(e.val, true)
589 case "required":
590 ret.Required = p.parseBool(e.val)
591 default:
592 p.unexpectedKey(e.key, "secrets", []string{"description", "required"})
593 }
594 }
595
596 return ret
597}
598
599// https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_calloutputs
600func (p *parser) parseWorkflowCallEventOutput(name *String, n *yaml.Node) *WorkflowCallEventOutput {

Callers 1

Calls 4

parseMappingAtMethod · 0.95
parseStringMethod · 0.95
parseBoolMethod · 0.95
unexpectedKeyMethod · 0.95

Tested by

no test coverage detected