Generated graph is submitted immediately by dependency-submission action
While `setup-gradle` must wait until the end of job to submit all of the generated
graphs, the `dependency-submission` action will not save/upload the generated graph
immediately, in the same step where it is generated.
Changes for docs/dependency-submission.md: 0 added lines, 7 removed lines.
Original line number
Diff line number
Diff line
@@ -289,17 +289,10 @@ jobs:
-name:Generate and submit dependency graph
uses:gradle/actions/dependency-submission@v3
dependency-review:
needs:dependency-submission
runs-on:ubuntu-latest
steps:
-name:Perform dependency review
uses:actions/dependency-review-action@v3
```
Note that the `dependency-submission` action submits the dependency graph at the completion of the workflow Job.
For this reason, the `dependency-review-action` must be executed in a dependent job, and not as a subsequent step in the job that generates the dependency graph.
## Usage with pull requests from public forked repositories
This `contents: write` permission is [not available for any workflow that is triggered by a pull request submitted from a public forked repository](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token).