Skip to content

False positive during Dockle Scan #203

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

Closed
NiccoloFei opened this issue May 23, 2025 · 1 comment · Fixed by #204 or cloudnative-pg/postgis-containers#77
Closed

False positive during Dockle Scan #203

NiccoloFei opened this issue May 23, 2025 · 1 comment · Fixed by #204 or cloudnative-pg/postgis-containers#77
Labels
bug Something isn't working

Comments

@NiccoloFei
Copy link
Contributor

All Dockle image scans are failing with a false positive after 8010a5b was merged.

@dosubot dosubot bot added the bug Something isn't working label May 23, 2025
Copy link

dosubot bot commented May 23, 2025

After reviewing the changes introduced by commit 8010a5b, the Dockerfile template now includes a check that halts the build if any upgradable PostgreSQL packages are detected. This new logic could be triggering a false positive in Dockle scans, causing all image scans to fail even when there is no real issue with the image itself.

The Dockle scan is configured in the CI workflow to fail on warnings, which may be contributing to the problem if Dockle interprets the new check or its output as a security or best-practice violation workflow reference.

I did not find any existing issues or discussions in the repository about this specific false positive, nor any documentation on known solutions or workarounds for Dockle false positives related to this type of Dockerfile logic.

A common workaround for Dockle false positives is to use the DOCKLE_IGNORES environment variable or the accept-keywords/accept-filenames options in the Dockle configuration to suppress specific checks or warnings. You may want to review the Dockle scan output to identify the exact check or warning being triggered and consider ignoring it if it is not relevant to your security posture Dockle config example.

If you can provide the specific Dockle warning or check that is failing, I can help suggest a more targeted workaround.

To continue talking to Dosu, mention @dosu-bot.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant