Skip to content

small fix to shush static analyzers#1248

Open
damian-buho wants to merge 1 commit intoredhat-developer:mainfrom
damian-buho:main
Open

small fix to shush static analyzers#1248
damian-buho wants to merge 1 commit intoredhat-developer:mainfrom
damian-buho:main

Conversation

@damian-buho
Copy link
Copy Markdown

@damian-buho damian-buho commented May 6, 2026

What does this PR do?

Explicitly sets last USER to node (uid 1000 from node:lts)
Prevents Trivy and Hadolint from freaking out.

https://avd.aquasec.com/misconfig/dockerfile/general/ds-0002/
https://github.com/hadolint/hadolint/wiki/DL3002

Also, I suspect you don't need root to run language server.

Is it tested? How?

Run docker build, behaviour didn't change
(except output of

docker run -it --rm --entrypoint whoami <image name>

(was "root", now "node").

@damian-buho damian-buho requested a review from datho7561 as a code owner May 6, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant