mirror of
https://github.com/hadolint/hadolint-action.git
synced 2024-08-16 10:09:53 +02:00
feat: Add problem matcher
* Add problem matcher * Fix loading tar file from artifacts
This commit is contained in:
parent
836016a45f
commit
88386d9893
3 changed files with 22 additions and 2 deletions
|
@ -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" ]
|
||||
|
|
5
hadolint.sh
Executable file
5
hadolint.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo '::add-matcher::problem-matcher.json'
|
||||
|
||||
hadolint "$@"
|
15
problem-matcher.json
Normal file
15
problem-matcher.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "hadolint",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "(.*)\\:(\\d+)\\s(.*)",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue