Skip to content

Bump sonar-cryptography-plugin to 1.6.1 - #51

Merged
n1ckl0sk0rtge merged 1 commit into
mainfrom
chore/sonar-crypto-plugin-1.6.1
Aug 17, 2026
Merged

Bump sonar-cryptography-plugin to 1.6.1#51
n1ckl0sk0rtge merged 1 commit into
mainfrom
chore/sonar-crypto-plugin-1.6.1

Conversation

@n1ckl0sk0rtge

Copy link
Copy Markdown
Contributor

Summary

Updates sonar.crypto.plugin.version from 1.5.1 to 1.6.1 and re-derives the affected test expectations from the actual CBOM output under the new plugin version.

Test expectation changes

1.6.1 normalizes algorithm component names to hyphenated forms:

1.5.1 1.6.1
SHA256 SHA-256
HMAC-SHA256 HMAC-SHA-256
AES128-CBC-PKCS7 AES-128-CBC-PKCS7
PBKDF2 PBKDF2-SHA-256

The Go fixture also yields one additional component (27 → 28). Finding counts (69 for Go, 5 for Python) and all line numbers are unchanged. Java tests needed no changes.

Expected values were re-derived by dumping the actual components/occurrences produced by 1.6.1, not guessed.

⚠️ Consumer-visible change

The component-name normalization is not internal to the tests — any downstream code that matches on CBOM component names (e.g. SHA256) will no longer match. Worth calling out to CBOMkit service / cbomkit-action.

Test plan

  • mvn clean package — 18/18 tests pass

Note: the build fails locally on JDK 25 because spotless' google-java-format hits NoSuchMethodError on Log$DeferredDiagnosticHandler — unrelated to this change. Built with Temurin 21, which is what CI uses.

Update sonar.crypto.plugin.version from 1.5.1 to 1.6.1 and re-derive the
affected test expectations from the actual CBOM output.

1.6.1 normalizes algorithm component names to hyphenated forms
(SHA256 -> SHA-256, HMAC-SHA256 -> HMAC-SHA-256,
AES128-CBC-PKCS7 -> AES-128-CBC-PKCS7, PBKDF2 -> PBKDF2-SHA-256).
The Go fixture also yields one additional component (27 -> 28); finding
counts and line numbers are unchanged.
@n1ckl0sk0rtge
n1ckl0sk0rtge requested a review from a team as a code owner August 17, 2026 07:47
@n1ckl0sk0rtge
n1ckl0sk0rtge merged commit 13fc648 into main Aug 17, 2026
1 of 2 checks passed
@n1ckl0sk0rtge
n1ckl0sk0rtge deleted the chore/sonar-crypto-plugin-1.6.1 branch August 17, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant