1
0
Fork 0
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:
Arne Jørgensen 2020-12-05 18:34:32 +01:00 committed by GitHub
parent 836016a45f
commit 88386d9893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 2 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
#!/bin/sh
echo '::add-matcher::problem-matcher.json'
hadolint "$@"

15
problem-matcher.json Normal file
View file

@ -0,0 +1,15 @@
{
"problemMatcher": [
{
"owner": "hadolint",
"pattern": [
{
"regexp": "(.*)\\:(\\d+)\\s(.*)",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
}