mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1144] Issue: Improperly formatted workflow yaml file causes "panic: runtime error: invalid memory address or nil pointer dereference" #645
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#645
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vcolanoKH on GitHub (Apr 28, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1144
System information
act: nektos/actactversion: 0.2.26Expected behaviour
Yaml parsing syntax error or otherwise error specifying that yaml file cannot be run as a github workflow.
Actual behaviour
Cryptic go error is given.
Workflow and/or repository
workflow
Steps to reproduce
act pull_request -W .github/workflows/bug.yml -v -P nektos/actactoutputLog
@ChristopherHX commented on GitHub (Apr 29, 2022):
Thank you for reporting this
the yaml syntax is perfectly fine. Someone decided to decode the steps into an array of pointers, so the yaml parser decoded an null value, to a nil value => crash.
I drafted a Pullrequest to fix the crash.
@KnisterPeter commented on GitHub (May 11, 2022):
Besides that the workflow is valid yaml syntax it is semantically not correct.
Currently it's out of scope for act to check semantic, but actionlint can be used to do so: https://rhysd.github.io/actionlint/