Skip to content

feat(actions): add slack-notify, install-yq, install-kustomize#5

Merged
vklimontovich merged 4 commits into
mainfrom
feat/deploy-helpers
May 11, 2026
Merged

feat(actions): add slack-notify, install-yq, install-kustomize#5
vklimontovich merged 4 commits into
mainfrom
feat/deploy-helpers

Conversation

@vklimontovich
Copy link
Copy Markdown
Contributor

Summary

Three new composite actions intended to back the new infra deploy workflow in jitsucom/jitsu-cloud-infra#7 and any future deploy-style workflows.

  • .github/actions/slack-notify/ — moved here from jitsucom/jitsu/.github/actions/slack-notify/. The version in jitsucom/jitsu stays in place for now; its callers will be migrated in a separate cleanup.
  • .github/actions/install-yq/ — installs the yq CLI to /usr/local/bin. Defaults to latest; accepts an optional pinned version.
  • .github/actions/install-kustomize/ — installs the kustomize CLI with a pinned version + sha256 verification. Defaults to 5.8.1.

README updated with usage examples.

Notion task: https://www.notion.so/35d737892e4781699578c92305d772b8

Test plan

  • Reference jitsucom/github-workflows/.github/actions/slack-notify@main from the infra deploy workflow PR (jitsu-cloud-infra#7) and confirm Slack messages land as before.
  • Same for install-yq and install-kustomize.

Out of scope

  • Migrating jitsucom/jitsu's existing slack-notify callers to this shared copy.

All composite. Intended to back the new infra deploy workflow in
jitsucom/jitsu-cloud-infra. slack-notify is moved here from the in-tree
copy in jitsucom/jitsu (existing callers keep their local copy until a
later cleanup).
Copy link
Copy Markdown

@jitsu-code-review jitsu-code-review Bot left a comment

Choose a reason for hiding this comment

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

Thanks for adding these reusable composite actions. I found two actionable security/correctness issues that should be addressed before merge: both install-yq and slack-notify download an executable from releases/latest without integrity verification, which makes runs non-deterministic and allows execution of an unverified binary.

Comment thread .github/actions/install-yq/action.yml
Comment thread .github/actions/slack-notify/action.yml Outdated
Address review feedback on PR #5. install-yq now defaults to a pinned
v4.53.2 with sha256 input (mirrors install-kustomize). slack-notify
inlines the same pin+verify install instead of downloading from
releases/latest without integrity checks.
- slack_webhook_url: optional, falls back to SLACK_WEBHOOK_URL env var
  (caller sets it from secrets.CI_SLACK_WEBHOOK at job level)
- color: defaults to 'good' (green)
- blocks: optional; when omitted, sends header alone (skips yq install)

Composite actions can't read org secrets directly, so the env-var fallback
is the standard pattern for reducing per-step boilerplate.
Copy link
Copy Markdown

@jitsu-code-review jitsu-code-review Bot left a comment

Choose a reason for hiding this comment

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

Re-reviewed the latest diff (). I don’t see new actionable bugs, security issues, or correctness regressions.\n\nThe yq/kustomize install paths are now pinned and checksum-verified, and the Slack action changes look consistent with the stated behavior.

Copy link
Copy Markdown

@jitsu-code-review jitsu-code-review Bot left a comment

Choose a reason for hiding this comment

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

Re-reviewed at HEAD. Existing review threads are resolved, and I did not find new actionable bugs, security issues, or correctness regressions in this diff. The pinned/checksum-verified installer changes look good.

The composite action now prefers SLACK_WEBHOOK_URL env (typically set from
secrets.CI_SLACK_WEBHOOK at job level) over the slack_webhook_url input; the
input is a fallback for ad-hoc testing.

Adds .github/workflows/slack-notify.yml as a thin reusable-workflow wrapper
that pulls the secret and forwards to the composite. Useful for callers that
prefer 'secrets: inherit' and for triggering the action via workflow_dispatch
from the GitHub UI.
Copy link
Copy Markdown

@jitsu-code-review jitsu-code-review Bot left a comment

Choose a reason for hiding this comment

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

Re-review complete. I checked the current diff and existing review threads; previously raised security concerns are resolved, and I did not find new actionable bugs, security issues, or correctness regressions in this changeset.

@vklimontovich vklimontovich merged commit a8928dc into main May 11, 2026
1 check passed
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