From 7c84a90501094cc1d7f76c4957c59f53a8e5baa1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 4 Jun 2020 22:04:02 +0200 Subject: .github/workflows: support errors without :column Also transform: file.go:line: error message to the github format. --- .github/workflows/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/run.sh b/.github/workflows/run.sh index 697d7e366..0d0a6bbef 100755 --- a/.github/workflows/run.sh +++ b/.github/workflows/run.sh @@ -8,4 +8,4 @@ set -o pipefail # Run the specified command in syz-env and convert error messages to github format: # https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message gopath/src/github.com/google/syzkaller/tools/$1 "${@:2}" | \ - sed -E 's#\s*(.+):([0-9]+):([0-9]+): (.+)#\0\n::error file=\1,line=\2,col=\3::\4#' + sed -E 's#\s*([a-zA-Z0-9._/-]+):([0-9]+):(([0-9]+):)? (.+)#\0\n::error file=\1,line=\2,col=0\4::\5#' -- cgit mrf-deployment