MCPcopy
hub / github.com/ossf/scorecard / GetJobName

Function GetJobName

checks/fileparser/github_workflow.go:42–47  ·  view source on GitHub ↗

GetJobName returns Name.Value if non-nil, else returns "".

(job *actionlint.Job)

Source from the content-addressed store, hash-verified

40
41// GetJobName returns Name.Value if non-nil, else returns "".
42func GetJobName(job *actionlint.Job) string {
43 if job != nil && job.Name != nil {
44 return job.Name.Value
45 }
46 return ""
47}
48
49// GetStepName returns Name.Value if non-nil, else returns "".
50func GetStepName(step *actionlint.Step) string {

Callers 4

TestGetJobNameFunction · 0.85
GetOSesForJobFunction · 0.85
GetShellForStepFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetJobNameFunction · 0.68