Comments (4)
The dependency-submission
action is currently a thin wrapper over gradle/actions/setup-gradle
, setting dependency-graph: generate-and-submit
as a default.
When executed the action will:
- Configure Gradle with an init-script that will write a dependency graph file to disk for each Gradle execution.
- Execute Gradle with a "resolve all dependencies" task. This will generate a dependency graph file.
- In the post-action, submit the dependency graph file
The third step happens at the end of the job. This is why you need to configure dependency review in a separate Job.
Note that using download-and-submit
will indeed submit the dependency graph immediately, but it will not generate the dependency graph. This is designed for workflows where the Job generating the graph doesn't have sufficient permissions to submit the graph, so it assumes that the graph has been generated and uploaded in a previous job (or workflow).
You can read more about the various permutations here.
from actions.
Yes, you are completely right. I missed this on my analysis.
This leads me to another question, why would we want to submit this as a post job and not on the dependency submission action
itself? this would allow dependency-review-action
to run immediately without adding the latency to wait for another job to be schedule (and the added cost)
I understand this is layered on top of gradle/actions/setup-gradle
which was built (and build-graddle before that) with the assumption/need that gradle would be invoked after the setup/build. But since in this case we are skipping the graddle
invocation such optimization would be very nice.
Happy to open an enhancement issue if you think this makes sense.
from actions.
The only reason for submitting the dependency graph in the post-action job is because this action is a composite action reusing the implementation of setup-gradle
.
At some stage I'd like to migrate dependency-submission
to be a Typescript action in it's own right. That would permit improvements like submitting the dependency graph immediately on generation.
from actions.
This behaviour will be changed with #123
from actions.
Related Issues (20)
- The setup-gradle action should make the Gradle wrapper executable HOT 5
- Provide assistance to users attempting to resolve vulnerable dependencies
- Artifact downloaded but 'No dependency graph files found to submit' when using `download-and-submit` HOT 4
- How to configure this action to ignore plugin dependencies? HOT 4
- [Question] Inconsistent gradle configuration exclusion results HOT 12
- The `setup-gradle` action with `dependency-graph` option fails with Gradle Project Isolation HOT 13
- Cache cleanup should use the same Gradle executable as the build HOT 2
- Dependency graph are generated for all Gradle jobs following a `dependnecy-submission` step
- dependency-submissoin fails job even with upgraded dependencies HOT 4
- Dependency-submission setup recursively. HOT 2
- class cast from DependencyExtractorBuildService to DependencyExtractor failed on self-hosted runner HOT 4
- Failing to restore Gradle Cache because of "Error: Content-Length not found on blob response" HOT 5
- Does the build scan will reveal the secret key? HOT 1
- Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read HOT 5
- gradle/actions/dependency-submission needs to work on tag builds HOT 3
- Indicate why cache is read-only in Job Summary
- Provide guidance on dependency-verification config when enabling build-scan publishing
- Develocity build scan publishing fails with v3.4.0 HOT 1
- Multiple GRADLE_USER_HOMEs
- Provide info about configuration and project name for vulnerable dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions.