Skip to content

Commit

Permalink
update (#292)
Browse files Browse the repository at this point in the history
Signed-off-by: laurentsimon <[email protected]>

Signed-off-by: laurentsimon <[email protected]>
  • Loading branch information
laurentsimon authored Dec 19, 2022
1 parent d8234c0 commit 447aede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/server/verify_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var (
errNonScorecardJobHasTokenWrite = errors.New("workflow has a non-scorecard job with id-token permissions")
errJobHasContainerOrServices = errors.New("job contains container or service")
errScorecardJobRunsOn = errors.New("scorecard job should have exactly 1 'Ubuntu' virtual environment")
errInvalidRunnerLabel = errors.New("scorecard job has invalid runner label")
errUnallowedStepName = errors.New("job has unallowed step")
errScorecardJobEnvVars = errors.New("scorecard job contains env vars")
errScorecardJobDefaults = errors.New("scorecard job must not have defaults set")
Expand Down Expand Up @@ -101,7 +102,7 @@ func verifyScorecardWorkflow(workflowContent string) error {
}
label := labels[0].Value
if _, ok := ubuntuRunners[label]; !ok {
return fmt.Errorf("%w", errScorecardJobRunsOn)
return fmt.Errorf("%w: '%s'", errInvalidRunnerLabel, label)
}

// Verify that there are no job env vars set.
Expand Down

0 comments on commit 447aede

Please sign in to comment.