From df662ab7a1f3ea4c2fe010d242dbda3a079a57b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20R=C3=B6hrich?= Date: Mon, 10 Aug 2026 18:02:51 +0200 Subject: [PATCH] Problem Matcher: Capture code and severity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the problem matcher capture Hadolint's output more acurately. related-to: hadolint/hadolint-action#78 Signed-off-by: Moritz Röhrich --- problem-matcher.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/problem-matcher.json b/problem-matcher.json index 089f9c6..14f0641 100644 --- a/problem-matcher.json +++ b/problem-matcher.json @@ -4,10 +4,12 @@ "owner": "hadolint/hadolint-action", "pattern": [ { - "regexp": "(.*)\\:(\\d+)\\s(.*)", + "regexp": "^(.+):(\\d+)\\s(.+)\\s(error|warning|info|style):\\s(.+)$", "file": 1, "line": 2, - "message": 3 + "code": 3, + "severity": 4, + "message": 5 } ] }