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

Security and maintainability fixes #269

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

gregtyler
Copy link
Contributor

Purpose

Fix a few issues highlighted by Trivy and SonarCloud

#patch

Approach

Use Alpine 3.19 for fixtures container: this contains the libexpat patch and others.

Move the properties file to the name used for cloud analysis (I'd previously used the one for CI analysis).

Some minor maintainability fixes that were easy to fix.

Learning

The various ways you can configure SonarCloud caused me some confusion, but it seems we want .sonarcloud.properties as our configuration file name for it to be picked up properly.

Use Alpine 3.19 for fixtures container: this contains the libexpat patch and others.

Move the properties file to the name used for cloud analysis (I'd previously used the one for CI analysis).

Some minor maintainability fixes that were easy to fix.

#patch
acsauk
acsauk previously approved these changes Oct 15, 2024
Copy link
Contributor

@acsauk acsauk left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -6,14 +6,12 @@ COPY fixtures/package.json package.json
COPY fixtures/package-lock.json package-lock.json
RUN npm ci --ignore-scripts

FROM python:3-alpine3.17
FROM python:3-alpine3.19
Copy link
Contributor

Choose a reason for hiding this comment

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

You might want a specific python version here to avoid unexpected upgrades and breakage.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, fair, I've pinned to 3.13

Copy link

sonarcloud bot commented Oct 15, 2024

Copy link
Contributor

@acsauk acsauk left a comment

Choose a reason for hiding this comment

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

:shipit:

@gregtyler gregtyler merged commit 916f84c into main Oct 15, 2024
24 checks passed
@gregtyler gregtyler deleted the security-maintainability-fixes branch October 15, 2024 15:59
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.

3 participants