Skip to content

ci: Harden workflows - #450

Open
Saul-STFC wants to merge 5 commits into
stackabletech:mainfrom
Saul-STFC:CI-Hardening
Open

ci: Harden workflows#450
Saul-STFC wants to merge 5 commits into
stackabletech:mainfrom
Saul-STFC:CI-Hardening

Conversation

@Saul-STFC

Copy link
Copy Markdown

Description

This PR adds CI Hardening to the stackablectl repo

This addresses all warnings from Zizmor and also bumps dependency versions.

NOTE: - sigstore/cosign-installer v3.9.1 → v4.1.2 : v3+ of Cosign has breaking changes to the default signature format, i'm not sure how that affects our registry/signing setup, so cosign-release is explicitly pinned to v2.6.5 for now rather than taking the installer's new default.

See:
https://github.com/sigstore/cosign/releases/tag/v3.0.1
https://blog.sigstore.dev/cosign-3-0-available/
goharbor/harbor#22592

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • CRD changes approved
  • Helm chart can be installed and deployed operator works
  • Integration tests passed (for non trivial changes)

Reviewer

  • Code contains useful comments
  • (Integration-)Test cases added
  • Documentation added or updated
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added

@NickLarsenNZ NickLarsenNZ moved this to Development: Waiting for Review in Stackable Engineering Aug 17, 2026
@Saul-STFC

Copy link
Copy Markdown
Author

@NickLarsenNZ @Techassi

Comment thread .github/workflows/pr_cockpit.yml Outdated
@Techassi Techassi changed the title CI: Hardening ci: Harden workflows Aug 19, 2026

@Techassi Techassi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The changes themself are fine, but I think we should use the opportunity to improve the workflows in general. That is something which is on my plate since forever, but I just didn't get around to it yet.

Comment thread .github/workflows/pr_cockpit.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would be fine removing this entire workflow as we just use the underlying library but don't support/use the container image + helm chart anymore.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done, #792de01a

Comment thread .github/workflows/pr_docs.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can also go.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done, #792de01a

Comment thread .github/workflows/pr_general.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should also go and all checks/lints should be handled by pre-commit/prek.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done, #792de01a

push:
tags:
- "stackablectl-[0-9]+.[0-9]+.[0-9]+**"
- "stackablectl-[0-9]+.[0-9]+.[0-9]+*"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The ** is different compared to *. The change should technically be fine, but was there a particular reason you changed this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This wasn't meant to be changed and I have reverted it, I think I must have fat-fingered a vim motion

Comment thread .github/workflows/pr_pre-commit.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should switch to prek instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done, #792de01a

Comment thread .github/workflows/pr_stackablectl.yml Outdated
Comment on lines 87 to 93
- name: Ensure shell completions up-to-date
if: matrix.os == 'x86_64-unknown-linux-gnu'
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
cargo xtask gen-comp
git diff --exit-code

- name: Ensure man page is up-to-date

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Those two checks should instead be handled by pre-commit/prek.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done, #792de01a

run: mv rust/stackablectl/stackablectl_bin.cdx.xml "stackablectl-$TARGET.cdx.xml"

- name: Upload Release Binary and SBOM
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should move to a gh release ... approach, similar to other reworks. See https://github.com/stackabletech/docker-images/blob/main/.github/workflows/boil_release.yaml for example.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done, #792de01a

@Techassi Techassi moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

4 participants