Skip to content

Use workflows of https://github.com/cap-java/.github - #118

Merged
lisajulia merged 2 commits into
mainfrom
chore-workflows
Aug 10, 2026
Merged

Use workflows of https://github.com/cap-java/.github#118
lisajulia merged 2 commits into
mainfrom
chore-workflows

Conversation

@lisajulia

Copy link
Copy Markdown
Contributor

No description provided.

@lisajulia

Copy link
Copy Markdown
Contributor Author

@markusbucher: Can you have a look at this? Thanks!

@markusbucher markusbucher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The overall direction is good — centralizing CI actions, pinning SHAs, adding least-privilege permissions: blocks, and adding security scans to PRs are all the right moves. A few issues need to be resolved before this is safe to merge.

Comment thread .github/workflows/main-build-and-deploy-oss.yml
Comment thread .github/workflows/main-build-and-deploy-oss.yml
Comment thread .github/workflows/main-build-and-deploy-oss.yml
Comment thread .github/workflows/main-build-and-deploy-oss.yml
Comment thread .github/workflows/main-build-and-deploy-oss.yml
Comment thread .github/workflows/main-build.yml
Comment thread .github/workflows/pull-request-build.yml

@markusbucher markusbucher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review done, some corrections of AI assumptions were needed. Findings seem to be accurate now

@markusbucher

Copy link
Copy Markdown
Contributor

Thanks for addressing all the previous comments. I've verified the updated PR against the actual shared action definitions in cap-java/.github at the pinned SHA — here is my re-review.

All previous findings resolved ✅

  • gpg-* input names — confirmed correct. The shared deploy-release action uses gpg-pub-key, gpg-private-key, gpg-passphrase exactly as called here.
  • rapid_compare_mode: BOM_COMPARE + scan_mode: RAPID on PRs — confirmed correct and intentional. The shared BlackDuck action's documentation explicitly recommends this combination for PR scans.
  • upload-artifact #v7 — SHA 043fb46d... resolves to v7.0.1 ✓ (was #v6 before, now fixed)
  • build and deploy jobs missing permissions: — both now have contents: read
  • deploy-snapshot unpinned actions — now pinned ✓
  • continue-on-error: true on CodeQL — removed ✓

One remaining minor observation

deploy-snapshot job in main-build.yml has no permissions: block (unlike every other updated job).

All other jobs across all three workflow files now have explicit permissions: blocks, but deploy-snapshot does not. It will inherit the workflow-level default (contents: read is set at workflow level in main-build.yml, so it is not a security risk — just inconsistent). A permissions: contents: read block here would make the pattern uniform.

Overall

The implementation is clean and correct. The consolidation to shared actions, SHA pinning, and least-privilege permissions are all well done. The minor deploy-snapshot inconsistency is the only thing left — feel free to fix or leave it, it does not block merging.

@markusbucher
markusbucher self-requested a review August 7, 2026 09:07

@markusbucher markusbucher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thank you

@lisajulia
lisajulia merged commit 9a50258 into main Aug 10, 2026
6 of 9 checks passed
@lisajulia
lisajulia deleted the chore-workflows branch August 10, 2026 07:58
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