Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect value set previously by ENV #1

Open
lstocchi opened this issue Dec 12, 2022 · 0 comments
Open

Detect value set previously by ENV #1

lstocchi opened this issue Dec 12, 2022 · 0 comments

Comments

@lstocchi
Copy link
Contributor

lstocchi commented Dec 12, 2022

If a Dockerfile contains a env variable set and then used, the analyzer should get the actual value and analyze it.

ENV HTTP_PORT=8080

EXPOSE $HTTP_PORT

Now it prints this output

1 - strconv.Atoi: parsing "$HTTP_PORT": invalid syntax

2 - port 0 exposed at line 30 could be wrong. TCP/IP port numbers below 1024 are privileged port numbers
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

No branches or pull requests

1 participant