mirror of
https://github.com/nektos/act.git
synced 2026-04-25 17:05:50 +03:00
[GH-ISSUE #2520] Error: workflow is not valid. 'spellCheck.yaml': Line: 37 Column 3: Failed to match on-string-strict: Line: 37 Column 3: Failed to match branch-protection-rule-string: Line: 37 Column 3: Expected a scalar got mapping #1164
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#1164
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 @jsoref on GitHub (Nov 6, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2520
Bug report info
Command used with act
Describe issue
a workflow that github tolerates breaks
act -lLink to GitHub repository
github.com/microsoft/winget-dsc@1970b70048/.github/workflows/spellCheck.yamlWorkflow content
Relevant log output
Additional information
This patch "fixes" the bug:
I'm not sure why, but GitHub doesn't need it.
@ChristopherHX commented on GitHub (Nov 6, 2024):
Are you shure that tags-ignore: under pull_request_target is no hallucination from your side.
Anyways I used the strict workflow schema, not the permissive one.
Those can be swapped out by removing
-strictfrom the workflow-root string@jsoref commented on GitHub (Nov 6, 2024):
Oh, it's definitely a hallucination. I removed it in
github.com/check-spelling/spell-check-this@d0a68814a4, but a bunch of people have older copies of the workflow...@jsoref commented on GitHub (Nov 6, 2024):
The error message should explain what's wrong as well as how to tolerate hallucinations. The current output does neither.
@ChristopherHX commented on GitHub (Nov 6, 2024):
It does this, very very very verbose
contains tags-ignore, that is in pull_request_target
Please refer to
https://github.com/nektos/act/pull/2416#issuecomment-2267580462
I aggreed about schema validation.
Here is my estimate
better errors are more work than schemavalidation itself
@jsoref commented on GitHub (Nov 6, 2024):
I think learning about hallucinations is valuable. I understand I'm asking someone for the more expensive cost, but it is useful.
I think adding a newline and a paragraph would go a long way -- it would push the wall of text out and leave the reader with something to do:
@ChristopherHX commented on GitHub (Nov 6, 2024):
Yes adding such a block after the schema error makes sense.
However I would shorten it to a link to docs site, where you can read more details.
In my point of view I would point everyone to install either the GitHub Actions (yes this blames even more) or my upcoming runner.server VSCode extension.
For anyone not wanting to install the ide, vscode.dev is available without login as well
Both show you all schema errors visually. I believe you are aware of the official extension.
I'm working more on different things like vscode extensions like the following key points
Regarding act, once my breaking change pr is in I continue here.
@rodbalp commented on GitHub (May 26, 2025):
Issue is stale and will be closed in 14 days unless there is new activity