You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/checksum-dependency-plugin/src/main/kotlin/com/github/vlsi/gradle/checksum/ChecksumDependency.kt
+34-22
Original file line number
Diff line number
Diff line change
@@ -219,8 +219,9 @@ class ChecksumDependency(
219
219
val signatures = art.file.toSignatureList()
220
220
keysToVerify[art] = signatures
221
221
for (sign in signatures) {
222
-
if (verificationDb.isIgnored(sign.keyID)) {
223
-
logger.debug("Public key ${sign.keyID.hexKey} is ignored via <ignored-keys>, so ${art.id.artifactDependency} is assumed to be not signed with that key")
222
+
val signKey = sign.pgpShortKeyId
223
+
if (verificationDb.isIgnored(signKey)) {
224
+
logger.debug("Public key $signKey is ignored via <ignored-keys>, so ${art.id.artifactDependency} is assumed to be not signed with that key")
logger.debug("Public key ${sign.keyID.hexKey} is ignored via <ignored-keys>, so ${art.id.artifactDependency} is assumed to be not signed with that key")
239
+
val signKey = sign.pgpShortKeyId
240
+
if (verificationDb.isIgnored(signKey)) {
241
+
logger.debug("Public key $signKey is ignored via <ignored-keys>, so ${art.id.artifactDependency} is assumed to be not signed with that key")
Copy file name to clipboardExpand all lines: plugins/checksum-dependency-plugin/src/main/kotlin/com/github/vlsi/gradle/checksum/ChecksumDependencyPlugin.kt
+6-1
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,11 @@ open class ChecksumDependencyPlugin : Plugin<Settings> {
73
73
settings.property("checksum.xml", "checksum.xml")
74
74
val checksums =File(settings.rootDir, checksumFileName)
75
75
val buildDir = settings.property("checksumBuildDir", "build/checksum")
Copy file name to clipboardExpand all lines: plugins/checksum-dependency-plugin/src/main/kotlin/com/github/vlsi/gradle/checksum/model/DependencyVerification.kt
"Trusted PGP keys for group ${id.group} are ${groupKeys.hexKeys}, "+
163
+
"Trusted PGP keys for group ${id.group} are $groupKeys, "+
164
164
if (dependencyChecksum.pgpKeys.isEmpty()) {
165
165
"however no signature found"
166
166
} else {
167
-
"however artifact is signed by ${dependencyChecksum.pgpKeys.hexKeys} only"
167
+
"however artifact is signed by ${dependencyChecksum.pgpKeys} only"
168
168
}
169
169
}
170
170
}
@@ -186,13 +186,13 @@ class DependencyVerificationDb(
186
186
val pass = expected.pgpKeys.any { dependencyChecksum.pgpKeys.contains(it) }
187
187
logger.debug {
188
188
"${if (pass) "OK"else"KO"} PGP module verification for $id."+
189
-
" The file was signed via ${dependencyChecksum.pgpKeys.hexKeys},"+
190
-
" trusted keys for module are ${expected.pgpKeys.hexKeys}"
189
+
" The file was signed via ${dependencyChecksum.pgpKeys},"+
190
+
" trusted keys for module are ${expected.pgpKeys}"
191
191
}
192
192
if (pass) {
193
193
pgpResult =PgpLevel.MODULE
194
194
} else {
195
-
details +="Expecting one of the following PGP signatures: ${expected.pgpKeys.hexKeys}, but artifact is signed by ${dependencyChecksum.pgpKeys.hexKeys} only"
195
+
details +="Expecting one of the following PGP signatures: ${expected.pgpKeys}, but artifact is signed by ${dependencyChecksum.pgpKeys} only"
0 commit comments