Skip to content

Commit b5dbc3b

Browse files
committed
Update changelog and docs
1 parent 4c1e28a commit b5dbc3b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,19 @@ apply plugin: GitHubDependencyGraphPlugin
2424
```
2525

2626
This causes 2 separate plugins to be applied, that can be used independently:
27-
- `GitHubDependencyExtractorPlugin` collects all dependencies that are resolved during a build execution and writes these to a file. The output file can be found at `<root>/build/reports/github-depenency-graph-gradle-plugin/github-dependency-snapshot.json`.
27+
- `GitHubDependencyExtractorPlugin` collects all dependencies that are resolved during a build execution and writes these to a file. The output file can be found at `<root>/build/reports/github-depenency-graph-snapshots/<job-correlator>.json`.
2828
- `ForceDependencyResolutionPlugin` creates a `GitHubDependencyGraphPlugin_generateDependencyGraph` task that will attempt to resolve all dependencies for a Gradle build, by simply invoking `dependencies` on all projects.
2929

30+
### Required environment variables
31+
32+
The following environment variables configure the snapshot generated by the `GitHubDependencyExtractorPlugin`. See the [GitHub Dependency Submission API docs](https://docs.github.com/en/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28) for details:
33+
- `GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR`: Sets the `job.correlator` value for the dependency submission
34+
- `GITHUB_DEPENDENCY_GRAPH_JOB_ID`: Sets the `job.id` value for the dependency submission
35+
- `GITHUB_REF`: Sets the `ref` value for the dependency submission
36+
- `GITHUB_SHA`: Sets the `sha` value for the dependency submission
37+
- `GITHUB_WORKSPACE`: Sets the root directory of the github repository
38+
- `GITHUB_DEPENDENCY_GRAPH_REPORT_DIR` (optional): Specifies where the dependency graph report will be generated
39+
3040
## Building/Testing
3141

3242
To build and test this plugin, run the following task:

release/changes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
Preliminary release of the github dependency graph plugin.
22

3-
- Don't override the default tasks in `ForceDependencyResolutionPlugin`
3+
- Don't override the default tasks in `ForceDependencyResolutionPlugin`
4+
- Allow `job.correlator` to be specified via `GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR` variable
5+
- Allow report directory to be specified via `GITHUB_DEPENDENCY_GRAPH_REPORT_DIR` variable

0 commit comments

Comments
 (0)