Skip to content

Commit dc07592

Browse files
authored
Add section on dependency verification
1 parent 1d027c1 commit dc07592

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ Note that no dependency graph will be generated when configuration state is load
9898
| 8.0 - 8.0.2 || :x: |
9999
| 8.1+ |||
100100

101+
### Dependency verification
102+
103+
When using this plugin with [dependency signature verification enabled](https://docs.gradle.org/current/userguide/dependency_verification.html#sec:signature-verification),
104+
the you should be able to update your `dependency-verification.xml` file using `--write-verification-metadata pgp,sha256`.
105+
106+
However, if this doesn't work, you can add the following to your `dependency-verificaton.xml` file:
107+
108+
```
109+
<trusted-keys>
110+
<trusted-key id="7B79ADD11F8A779FE90FD3D0893A028475557671" group="org.gradle" name="github-dependency-graph-gradle-plugin"/>
111+
</trusted-keys>
112+
```
113+
101114
## Using the plugin to generate dependency reports
102115

103116
As well as the `GitHubDependencyGraphPlugin`, which is tailored for use by the [gradle/actions/dependency-submission](https://github.com/gradle/actions/tree/main/dependency-submission) GitHub Action, this repository also provides the `SimpleDependencyGraphPlugin`, which generates dependency-graph outputs in simple text format.
@@ -172,3 +185,4 @@ To self-test this plugin and generate a dependency graph for this repository, ru
172185
The generated dependency graph will be submitted to GitHub only if you supply a
173186
[GitHub API token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
174187
via the environment variable `GITHUB_TOKEN`.
188+

0 commit comments

Comments
 (0)