mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix: crash malformed composite action (#1616)
* fix: crash malformed composite action * Add remote composite action test --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
75baa9dc3b
commit
606fd4bde1
4 changed files with 43 additions and 2 deletions
|
@ -86,6 +86,10 @@ func execAsComposite(step actionStep) common.Executor {
|
|||
|
||||
steps := step.getCompositeSteps()
|
||||
|
||||
if steps == nil || steps.main == nil {
|
||||
return fmt.Errorf("missing steps in composite action")
|
||||
}
|
||||
|
||||
ctx = WithCompositeLogger(ctx, &compositeRC.Masks)
|
||||
|
||||
err := steps.main(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue