You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've just started using this action to submit dependency information to GitHub, which is great!
However, we have some problems that this action (or rather the underlying Gradle plugin I suppose) is reporting dependencies for the Gradle plugins in the project, which are irrelevant for our use cases where we want to track vulnerabilities for the application dependencies that are defined via Gradle via the implementation configuration etc, not the internals of the build system such as what plugins are used.
Below are some examples in the generated dependency report,
These are defined in the plugins block in our build.gradle.kts file.
Is there a way to configure the action to not report on plugins, or at a minimum, mark them with the development scope? At the moment they are not reported with any scope making it impossible to distinguish them from real runtime dependencies.
Thanks in advance, Andreas
The text was updated successfully, but these errors were encountered:
There's not (currently) any way to ignore all plugin dependencies for your build, and the dependency-submission action is not able to differentiate between "development" and "runtime" dependencies.
But you can choose which projects and/or configurations to include/exclude when generating the dependency graph. See the documentation here.
Yes sorry I forgot to mention that I have tried with DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':buildSrc' (also directly via the Gradle plugin locally) and it did not make any difference for this case.
I will keep testing with variations of the flags to see if I can get it to work somehow.
You need to realize that it's where the dependencies are resolved that matters, not where they are declared. So if a plugin is applied to all projects, then it won't be possible to exclude it via project.
If you can generate a build scan then that will give you a good feel for which resolved configurations contain the undesirable dependency. If not, try running the dependencies and buildEnvironment tasks.
Hi there.
We've just started using this action to submit dependency information to GitHub, which is great!
However, we have some problems that this action (or rather the underlying Gradle plugin I suppose) is reporting dependencies for the Gradle plugins in the project, which are irrelevant for our use cases where we want to track vulnerabilities for the application dependencies that are defined via Gradle via the
implementation
configuration etc, not the internals of the build system such as what plugins are used.Below are some examples in the generated dependency report,
These are defined in the
plugins
block in ourbuild.gradle.kts
file.Is there a way to configure the action to not report on plugins, or at a minimum, mark them with the
development
scope? At the moment they are not reported with any scope making it impossible to distinguish them from real runtime dependencies.Thanks in advance, Andreas
The text was updated successfully, but these errors were encountered: