https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_callsecrets
(name *String, n *yaml.Node)
| 580 | |
| 581 | // https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-of-onworkflow_callsecrets |
| 582 | func (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 |
| 600 | func (p *parser) parseWorkflowCallEventOutput(name *String, n *yaml.Node) *WorkflowCallEventOutput { |
no test coverage detected