Skip to content

Commit 4fefe7e

Browse files
authored
Merge pull request #1748 from l3montree-dev/fix-io_uring
setting EIO_BACKEND to posix to avoid io_uring syscalls being blocked…
2 parents 1112edd + 5793b5c commit 4fefe7e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile.scanner

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,8 @@ COPY --from=golang-builder /usr/local/bin/cosign /usr/local/bin/cosign
9494
COPY --from=golang-builder /usr/local/bin/crane /usr/local/bin/crane
9595
COPY --from=golang-builder /usr/local/bin/gitleaks /usr/local/bin/gitleaks
9696

97+
# Semgrep tries to communicate with the ocaml analysis engine via io_uring, which causes the scanner to fail in container environments. Setting EIO_BACKEND to posix forces semgrep to use a different communication method that is compatible with containers. https://github.com/moby/moby/issues/47532
98+
# First reported here: https://gitlab.opencode.de/open-code/werkzeugkasten/helm-devguard/-/issues/1
99+
ENV EIO_BACKEND=posix
100+
97101
ENTRYPOINT [""]

0 commit comments

Comments
 (0)