[GH-ISSUE #875] Issue: cannot unmarshal single string into slice #523

Closed
opened 2026-03-01 21:44:10 +03:00 by kerem · 0 comments
Owner

Originally created by @catthehacker on GitHub (Nov 13, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/875

Originally assigned to: @catthehacker on GitHub.

When using entrypoint: in action.yml, it fails to unmarshal it via yaml.Decoder

[PR Plan/Create terraform plan] ⭐  Run Checkout
[PR Plan/Create terraform plan]   ✅  Success - Checkout
[PR Plan/Create terraform plan] ⭐  Run terraform plan
[PR Plan/Create terraform plan]   ☁  git clone 'https://github.com/dflook/terraform-plan' # ref=v1
[PR Plan/Create terraform plan]   ❌  Failure - terraform plan
Error: yaml: unmarshal errors:
  line 49: cannot unmarshal !!str `/entryp...` into []string
runs:
  using: docker
  image: docker://danielflook/terraform-github-actions:v1.9.1
  entrypoint: /entrypoints/plan.sh

Originally posted by @evilr00t in https://github.com/nektos/act/issues/330#issuecomment-830625229

Originally created by @catthehacker on GitHub (Nov 13, 2021). Original GitHub issue: https://github.com/nektos/act/issues/875 Originally assigned to: @catthehacker on GitHub. When using `entrypoint:` in `action.yml`, it fails to unmarshal it via `yaml.Decoder` ``` [PR Plan/Create terraform plan] ⭐ Run Checkout [PR Plan/Create terraform plan] ✅ Success - Checkout [PR Plan/Create terraform plan] ⭐ Run terraform plan [PR Plan/Create terraform plan] ☁ git clone 'https://github.com/dflook/terraform-plan' # ref=v1 [PR Plan/Create terraform plan] ❌ Failure - terraform plan Error: yaml: unmarshal errors: line 49: cannot unmarshal !!str `/entryp...` into []string ``` ``` runs: using: docker image: docker://danielflook/terraform-github-actions:v1.9.1 entrypoint: /entrypoints/plan.sh ``` _Originally posted by @evilr00t in https://github.com/nektos/act/issues/330#issuecomment-830625229_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#523
No description provided.