diff --git a/pkg/cli/actionlint.go b/pkg/cli/actionlint.go index ddbbdbdbb1d..b04ca6fa180 100644 --- a/pkg/cli/actionlint.go +++ b/pkg/cli/actionlint.go @@ -43,7 +43,7 @@ func getActionlintDocsURL(kind string) string { case "expression": anchor = "check-syntax-expression" case "syntax-check": - anchor = "check-syntax-expression" + anchor = "check-unexpected-keys" default: // For other kinds, try the standard "check-{kind}" pattern if !strings.HasPrefix(anchor, "check-") { diff --git a/pkg/cli/actionlint_test.go b/pkg/cli/actionlint_test.go index 17a0bb9f0a3..8d61093b6c4 100644 --- a/pkg/cli/actionlint_test.go +++ b/pkg/cli/actionlint_test.go @@ -298,6 +298,11 @@ func TestGetActionlintDocsURL(t *testing.T) { kind: "expression", expected: "https://github.com/rhysd/actionlint/blob/main/docs/checks.md#check-syntax-expression", }, + { + name: "syntax-check kind", + kind: "syntax-check", + expected: "https://github.com/rhysd/actionlint/blob/main/docs/checks.md#check-unexpected-keys", + }, { name: "generic kind with check- prefix", kind: "check-job-deps",