Feature - Support Maven Central in the packaging check
Is your feature request related to a problem? Please describe. Java projects which publish to Maven Central are not included in the packaging scorecards check.
Describe the solution you'd like We could extract the groupId/artifactId from the pom.xml and then search Maven Central via e.g. https://search.maven.org/artifact/org.apache.santuario/xmlsec and check if the latest release has packaged jars.
Alternatively we could check the README for a badge which redirects to Maven Central, e.g. something like https://maven-badges.herokuapp.com/maven-central/org.apache.santuario/xmlsec
If I got some feedback on this proposal I could work on a PR
Thanks for the report. I think the original goal of the Packaging check was to verify whether users have open-source release pipeline, to help consumers know that the build corresponds to the source code. We test if mvn command is used in https://github.com/ossf/scorecard/blob/main/checks/fileparser/github_workflow.go#L462.
For the project you are using, do you use a workflow to build publish?
NOTE: the packaging check starts to overlap with SLSA / signed releases, though.
Stale issue message - this issue will be closed in 7 days
We test if mvn command is used in https://github.com/ossf/scorecard/blob/main/checks/fileparser/github_workflow.go#L462.
E.g. for (my) https://github.com/MariaDB4j/MariaDB4j/ where I've added Scorecard in https://github.com/MariaDB4j/MariaDB4j/issues/661 on https://securityscorecards.dev/viewer/?uri=github.com/MariaDB4j/MariaDB4j it says ? for Packaging and Signed-Releases. The problem seems to be that I still run mvn deploy locally when doing a release, not in a GitHub Action. (As in, I do have GitHub Actions which contain ./mvnd for CI, but then don't deploy.) So scanning for a pom.xml and checking if an artifact is available as suggested above would detect this better than (only) scanning for run in GitHub Workflow Actions .
This issue is stale because it has been open for 60 days with no activity.
What about release workflow that 'release:prepare release:perform'?
The deploy phase is automatically performed by release plugin
This issue has been marked stale because it has been open for 60 days with no activity.