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

[FR]: Gradle Repository Potential Security and Reproducibility Risk #1558

Open
2 tasks done
SeanZoR opened this issue Jul 25, 2024 · 0 comments
Open
2 tasks done

[FR]: Gradle Repository Potential Security and Reproducibility Risk #1558

SeanZoR opened this issue Jul 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SeanZoR
Copy link

SeanZoR commented Jul 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the problem

The current root settings.gradle.kts setup poses a potential security and reproducibility risk due to the unrestricted access to repositories. The order of repository declarations matters as Gradle resolves dependencies in the order listed, leading to unintended artifacts being included if not properly managed.

Example Case:
The com.jraska.module.graph.assertion artifact is found in gradlePluginPortal() but not in mavenCentral(). Without proper filtering, new artifacts in mavenCentral() could unintentionally break or alter the build.

Current Configuration:

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}

Describe the solution

implement content filtering to restrict the scope of artifacts from each repository.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SeanZoR SeanZoR added the enhancement New feature or request label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant