Skip to content

Add GitHub Actions build/release workflows, bump version to 1.0 - #7

Merged
planetlevel merged 7 commits into
mainfrom
ci/build-and-release-v1.0
Sep 2, 2026
Merged

Add GitHub Actions build/release workflows, bump version to 1.0#7
planetlevel merged 7 commits into
mainfrom
ci/build-and-release-v1.0

Conversation

@planetlevel

Copy link
Copy Markdown
Collaborator

Adds two workflows:

  • build.yml: builds the jar with Maven on push/PR to main
  • release.yml: on push of a v* tag, builds the jar and publishes a GitHub Release with it attached

Also bumps pom.xml version from 1.0-SNAPSHOT to 1.0 (and updates README references to the jar filename) so the first tagged release ships a proper 1.0 build rather than a SNAPSHOT.

- build.yml: builds jar with Maven on push/PR to main
- release.yml: on v* tag push, builds jar and publishes a GitHub Release with it attached
- bump pom.xml version from 1.0-SNAPSHOT to 1.0
…ings

CI builds with JDK 8 per pom.xml's maven.compiler.source/target, but
String.repeat() requires Java 11+. Only compiled locally due to a newer JDK.
- pom.xml: source/target bumped from 1.8 to 17
- CI workflows: JDK 17 instead of JDK 8
- restore String.repeat() usage now that Java 11+ APIs are available
- docs updated from Java 8+ to Java 17+
Renames com.contrastsecurity.bomsquad -> com.contrastsecurity.runtimeanalyst,
the Maven artifact/jar (bom-squad -> runtime-analyst), and the GitHub repo
(Contrast-Security-OSS/bom-squad -> Contrast-Security-OSS/runtime-analyst).
Updates CI workflows, README, and CLAUDE.md accordingly.

@jason-at-contrast jason-at-contrast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like just two minor changes removing eval and replacing it with "your-instance" or something like that.

Comment thread src/main/java/com/contrastsecurity/runtimeanalyst/CBOMGenerator.java Outdated
Comment thread src/main/java/com/contrastsecurity/runtimeanalyst/AIBOMGenerator.java Outdated
Addresses PR #7 review comments from jason-at-contrast.
Drives a real, visible Chromium window through the user's own login
(including SSO/MFA), then reads their personal API key/service key/org id
straight off the User Settings > Your Keys page DOM. The visible browser is
used only for login; once the org UUID appears in the post-login URL, its
session cookies are exported via storageState() and the visible browser is
closed immediately - the account-page navigation and scraping happen in a
second, genuinely headless browser reusing those cookies, so nothing past
the login screen itself ever renders on screen.

Verifies the scraped credentials against a real API call before writing
contrast.properties.
@jason-at-contrast

Copy link
Copy Markdown
Collaborator

looks great, and I'll test it out later today :)

@jason-at-contrast

Copy link
Copy Markdown
Collaborator

For my review to take, I need "write" access hehe but no worries

…missing, revamp README

Playwright bump: 1.49.0 -> 1.62.0 (Chromium 131 -> Chrome for Testing 151). The old
pinned version was ~13 minor releases and ~20 Chromium majors behind.

AuthCommand now auto-installs the browser binary itself (in a separate JVM process,
since Playwright's CLI.main() calls System.exit() internally and would otherwise kill
this whole run) the first time it's missing, instead of telling the user to run a
separate install command - no extra manual step for a first-time user.

Main now runs auth automatically the first time cbom/aibom don't find a
contrast.properties (respecting -c), then proceeds with the command actually
requested - skipped for -h/--help.

README: rewritten from scratch (purpose, --help output, authentication/usage,
per-subcommand examples, then reference sections), with Why Contrast moved up
near the top.
@jason-at-contrast
jason-at-contrast self-requested a review September 2, 2026 17:15

@jason-at-contrast jason-at-contrast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the update of the eval to your-instance, everything looks good.

@planetlevel
planetlevel merged commit 503aea7 into main Sep 2, 2026
1 check passed
@planetlevel
planetlevel deleted the ci/build-and-release-v1.0 branch September 2, 2026 17:37
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.

2 participants