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

add: sonarcube suggestions on disable package install recommends #6087

Closed
wants to merge 3 commits into from

Conversation

mahesh-naxa
Copy link
Collaborator

Fixes Sunarcube Errors and Suggestions on CI

  • Make sure automatically installing recommended packages is safe here.
  • Make sure automatically installing recommended packages is safe here.
  • Omitting --ignore-scripts can lead to the execution of shell scripts. Make sure it is safe here.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mahesh-naxa
Copy link
Collaborator Author

Add:

  • a seperate user "appuser" that runs pdm executable .

@@ -4,18 +4,13 @@ FROM python:${PYTHON_IMG_TAG}-bookworm
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ENV PATH="/usr/src/app/__pypackages__/${PYTHON_IMG_TAG}/bin:$PATH" \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this being removed?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eternaltyro python stuff are inherited from python:3.10-bookworm base image. idk why PATH and PYTHONPATH are updated to use /usr/src/app/__pypackages__/${PYTHON_IMG_TAG}/bin where nothing exists.
It was also flagged by sonarcube. these changes are non destructive.

scripts/docker/tasking-manager/Dockerfile Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants