Skip to content

Commit d1246fc

Browse files
authored
Avoid job returning an error code so that the user interface does not show an error at top level, annotations remain (#27014)
1 parent e874739 commit d1246fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/semgrep.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ jobs:
6363
--json \
6464
$list_of_files \
6565
| jq --raw-output ".results[] | \"::warning file=\(.path),line=\(.start.line),title=\(.check_id)::\(.extra.message)\""
66-
exit ${PIPESTATUS[0]}
66+
#exit ${PIPESTATUS[0]}
67+
# for the moment always return a successful run
68+
exit 0
6769
else
6870
echo "No relevant files changed"
6971
fi

0 commit comments

Comments
 (0)