mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-16 05:18:08 +00:00
feat: Add problem matcher
* Add problem matcher * Fix loading tar file from artifacts
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
FROM hadolint/hadolint:v1.17.5-alpine
|
||||
|
||||
COPY LICENSE README.md /
|
||||
COPY hadolint.sh /usr/local/bin/hadolint.sh
|
||||
|
||||
ENTRYPOINT [ "hadolint" ]
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/hadolint.sh" ]
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo '::add-matcher::problem-matcher.json'
|
||||
|
||||
hadolint "$@"
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "hadolint",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "(.*)\\:(\\d+)\\s(.*)",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user