Problem Matcher: Capture code and severity

Make the problem matcher capture Hadolint's output more acurately.

related-to: hadolint/hadolint-action#78

Signed-off-by: Moritz Röhrich <moritz@ildefons.de>
This commit is contained in:
Moritz Röhrich
2026-08-10 18:05:28 +02:00
parent 32c6895df4
commit df662ab7a1
+4 -2
View File
@@ -4,10 +4,12 @@
"owner": "hadolint/hadolint-action", "owner": "hadolint/hadolint-action",
"pattern": [ "pattern": [
{ {
"regexp": "(.*)\\:(\\d+)\\s(.*)", "regexp": "^(.+):(\\d+)\\s(.+)\\s(error|warning|info|style):\\s(.+)$",
"file": 1, "file": 1,
"line": 2, "line": 2,
"message": 3 "code": 3,
"severity": 4,
"message": 5
} }
] ]
} }