Post-Quantum Cryptography & Signed CBOM Scanner Built for Bitbucket
Bitbucket Cloud lacks a native SARIF Code Scanning tab — leaving most security tools dumping raw JSON files. CipherMap outputs native test-reports/*.xml JUnit summaries directly into Bitbucket Pipelines, posts in-place Bitbucket Pull Request migration blueprints, syncs with Jira, and runs 100% offline across Bitbucket Cloud & Data Center.
image: ubuntu:24.04
definitions:
caches:
ciphermapbin: ~/.cache/ciphermap
pipelines:
default:
- step:
name: CipherMap Zero-Egress PQC, JUnit & Signed CBOM Gate
caches:
- ciphermapbin
script:
# Claim a 7-day trial or commercial key at https://www.ciphermap.io/eval-pack#trial
# Store in Bitbucket Repository Settings -> Repository variables -> CIPHERMAP_LICENSE (Secured)
- apt-get update && apt-get install -y --no-install-recommends curl ca-certificates coreutils
- mkdir -p "$HOME/.cache/ciphermap" test-reports
- |
set -euo pipefail
if [ ! -x "$HOME/.cache/ciphermap/ciphermap" ]; then
hdr_tmp="$(mktemp)"
bin_tmp="$(mktemp)"
trap 'rm -f "$hdr_tmp" "$bin_tmp"' EXIT
curl --proto '=https' --tlsv1.2 -fsSL -D "$hdr_tmp" \
-H "Authorization: Bearer ${CIPHERMAP_LICENSE}" \
-H "X-CipherMap-CI-Provider: bitbucket-pipelines" \
https://www.ciphermap.io/api/dl/ci-cli \
-o "$bin_tmp"
EXPECTED_SHA="$(awk 'tolower($1)=="x-ciphermap-sha256:" {gsub("\r","",$2); print $2}' "$hdr_tmp")"
[[ "$EXPECTED_SHA" =~ ^[0-9a-f]{64}$ ]]
echo "${EXPECTED_SHA} ${bin_tmp}" | sha256sum -c -
chmod 0755 "$bin_tmp"
mv "$bin_tmp" "$HOME/.cache/ciphermap/ciphermap"
fi
# Bitbucket auto-discovers test-reports/*.xml in the Pipeline "Tests" tab!
- "$HOME/.cache/ciphermap/ciphermap" scan . --offline --no-telemetry --target cnsa-2.0 --format junit -o test-reports/ciphermap-pqc.xml || true
- "$HOME/.cache/ciphermap/ciphermap" scan . --offline --no-telemetry --target cnsa-2.0 --fail-on critical --format sarif -o ciphermap.sarif
- |
if [[ "${CIPHERMAP_LICENSE:-}" == CIPHERMAP-* ]]; then
"$HOME/.cache/ciphermap/ciphermap" cbom . --offline --no-telemetry --spec-version 1.7 -o cbom.cdx.json
fi
artifacts:
- ciphermap.sarif
- test-reports/ciphermap-pqc.xml
- cbom.cdx.jsonFirst-Class bitbucket.org/workspace/repo Browser Scanner
Unlike GitHub-only scanners, CipherMap natively resolves public bitbucket.org/workspace/repo repositories right in your browser — generating an instant A–F PQC Readiness Grade, live Bitbucket README.md SVG badge, and Pull Request audit summary.
Zero-Egress Pipelines & Air-Gapped Data Center Runners
Keep proprietary JVM .jar/.war archives, .jks/.p12 keystores, and source code 100% inside your Bitbucket Cloud container or self-hosted Bitbucket Data Center firewall with --offline enforced.
ATLASSIAN SECURITY MATRIX
CipherMap vs. GitHub-Only CBOM Actions vs. Generic Bitbucket SAST Pipes
Built for Atlassian engineering stacks where Bitbucket Pipelines, Bitbucket Data Center, JVM archives, and Jira remediation workflows are first-class requirements.
| Capability | CipherMap for Bitbucket | GitHub-Only CBOM Actions | Generic Bitbucket SAST Pipes |
|---|---|---|---|
| Native Bitbucket UI Findings Tab | Native JUnit XML (test-reports/*.xml) renders directly in Bitbucket's Pipeline Tests tab | GitHub Actions only — no Bitbucket Pipelines template or Bitbucket UI viewer | Raw SARIF/JSON build artifacts that Bitbucket Cloud cannot render natively |
| Bitbucket Pull Request Reviews & Jira Sync | In-place PR comments (ci-review --provider bitbucket) + Jira ticket sync (--resolve-remediated) | No Bitbucket PR bot or Jira lifecycle integration | Manual webhook glue scripts required |
| Bitbucket Data Center & Air-Gap Support | 100% offline (--offline --no-telemetry) on Bitbucket Cloud & self-hosted Data Center | Requires GitHub.com Actions runner environment | Frequently requires SaaS cloud dashboard egress |
| JVM, Bytecode & Keystore Depth | 12 source languages + .jar/.war/.ear/.whl constant pools + .jks/.p12 keystores | Limited Java/Python source plugins | Skips compiled .jar/.war archives & PKCS#12 keystores |
| Signed CycloneDX 1.6 & 1.7 CBOM | Deterministic CycloneDX 1.6 & 1.7 CBOM sealed with Ed25519 + ML-DSA-65 (.pqc.sig) | Unsigned CycloneDX 1.6 JSON | Package SBOM only (no cryptographic algorithm CBOM) |
LIVE BITBUCKET SCORECARDS (3 VERIFIED REPOSITORIES)
Inspect Real Bitbucket PQC Readiness Scorecards
Explore live bitbucket.org repository scorecards, Bitbucket Pull Request Markdown, and copy-ready bitbucket-pipelines.yml templates.
snakeyaml/snakeyaml
a complete YAML 1.1 processor for JVM
connect2id/nimbus-jose-jwt
Java library for Javascript Object Signing and Encryption (JOSE) and JSON Web Tokens (JWT)
bitbucketpipelines/pipelines-guide-java
This is an example repo showing how pipelines work in a Java environment
Bitbucket Pipelines & Data Center PQC Frequently Asked Questions
How does CipherMap display findings in Bitbucket Cloud when Bitbucket has no native SARIF tab?
Unlike GitHub Advanced Security, Bitbucket Cloud does not natively render SARIF files in a Code Scanning tab. CipherMap solves this out of the box with --format junit -o test-reports/ciphermap-pqc.xml, which Bitbucket Pipelines automatically discovers and renders inside the native Pipeline 'Tests' tab alongside in-place Pull Request comments via ciphermap ci-review --provider bitbucket.
How do I scan a private Bitbucket Cloud or Bitbucket Data Center repository with zero code egress?
Never grant an external SaaS scanner OAuth read access to private Bitbucket workspaces. Claim a 7-day corporate trial key at ciphermap.io/eval-pack, store it as a Secured Repository Variable (CIPHERMAP_LICENSE), and run CipherMap 100% locally inside your Bitbucket Pipeline or air-gapped Data Center runner with --offline --no-telemetry.
Does CipherMap integrate with Jira Cloud and Jira Data Center alongside Bitbucket?
Yes. Run ciphermap jira . --jira-url <url> --jira-project SEC to automatically open deduplicated Jira tickets containing 12-language NIST FIPS 203 (ML-KEM-768) and FIPS 204 (ML-DSA-65) remediation blueprints, and pass --resolve-remediated to close tickets automatically once findings are fixed.
Can I test a public Bitbucket repository in my browser before configuring Bitbucket Pipelines?
Yes. Paste any public bitbucket.org/workspace/repo URL into ciphermap.io/scan for a free instant A–F Post-Quantum Readiness Scorecard, live SVG README.md badge, and pre-filled bitbucket-pipelines.yml snippet.