Skip to content

Commit 3a0fa08

Browse files
committed
docs: add a new part in README.md explaining how to regenerate dependency verification files
1 parent 3a6916c commit 3a0fa08

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,21 @@ Since this uses the gradle scanner, the sonar properties are defined in root pro
7171
On one hand, the Sonar scanner requires local paths for `sonar.sources` and `sonar.binaries` properties, on the other hand it requires absolute path for `sonar.androidLint.reportPaths` and `sonar.coverage.jacoco.xmlReportPaths`.
7272
More info on official Sonar docs: [SonarScanner for Gradle](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-for-gradle/)
7373

74-
74+
75+
## Dependency Verification
76+
77+
This project uses [Gradle Dependency Verification](https://docs.gradle.org/current/userguide/dependency_verification.html) to check the authenticity dependencies.
78+
79+
The following files are committed to the repository:
80+
- `gradle/verification-metadata.xml`
81+
- `gradle/verification-keyring.keys`
82+
- `gradle/verification-metadata.gpg`
83+
**For contributors: if you add or update dependencies, regenerate these files with:**
84+
```
85+
./gradlew --write-verification-metadata pgp,sha256 --export-keys
86+
```
87+
Then commit the updated files.
88+
This improves supply chain security and hopefully helps prevent unauthorized dependency changes.
7589

7690
## Knows Issues
7791
- Jacoco coverage report is incorrect

0 commit comments

Comments
 (0)