Giter Site home page Giter Site logo

Comments (1)

bigdaz avatar bigdaz commented on July 20, 2024

Thanks for your interest and enthusiasm!
There are quite a few reasons that we can't yet (and maybe shouldn't ever) enable this by default for the setup-gradle action:

  • Generating a dependency graph is quite a new feature, and we aren't sure that it works in all cases. It should be more well used and tested before it's enabled by default.
  • The dependency-submission workflow/job requires contents: write permissions. This might not be desirable for other workflows/jobs that are executing Gradle builds.
  • A CI pipeline may execute a large number of Gradle builds, and it may be wasteful if every one of the generated a separate dependency graph.
  • It's common to only generate a dependency graph on pushes to main, and not for PRs and pushes to branches.

We recommend that dependency-submission be configured in a workflow separate from your main build:

  • The graph will be submitted faster, which can help when combined with the dependency-review-action
  • There's less risk of a build failure changing the dependency graph result

Using a separate workflow is much like the way that code-scanning (CodeQL) is configured. We are in talks with GitHub to make it easier to add such a workflow, with an end goal to possibly have a "default" setup that doesn't even require adding a workflow file. This would be similar to enabling the default setup for code scanning.

That said, we are open to see how this functionality evolves and how it proves most useful. If we could find a fairly non-invasive way to have dependency-graph submitted for every repo that uses setup-gradle, then that would be great!

from actions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.