Skip to content

feat: add release pipeline and harden Dockerfile#59

Merged
vrdc-sap merged 5 commits into
kyma-project:mainfrom
vrdc-sap:vr-add-release-pipeline
May 27, 2026
Merged

feat: add release pipeline and harden Dockerfile#59
vrdc-sap merged 5 commits into
kyma-project:mainfrom
vrdc-sap:vr-add-release-pipeline

Conversation

@vrdc-sap
Copy link
Copy Markdown
Collaborator

@vrdc-sap vrdc-sap commented May 27, 2026

Description

Changes proposed in this pull request:

  • add release pipeline
  • harden Dockerfile

Related issue(s)
add release pipeline

@vrdc-sap vrdc-sap requested a review from dusglumac May 27, 2026 08:26
@hyperspace-insights
Copy link
Copy Markdown
Contributor

Summary

The following content is AI-generated and provides a summary of the pull request:

⚠️ Warnings:

  • Could not get issue kyma-project/gpu#123. Status: 404 - UnknownObjectException

Add Release Pipeline and Harden Dockerfile

New Feature

🚀 Introduces an automated release pipeline and hardens the Dockerfile with security and build improvements. This enables versioned releases of the GPU operator with auto-generated release notes and install manifests.

Changes

  • .github/workflows/release.yml: New workflow (manual workflow_dispatch) that validates the semver version, creates an annotated git tag, renders install.yaml via make build-installer, generates release notes with changelog and installation instructions, and publishes a GitHub Release with install.yaml and instance.yaml as assets.

  • .github/workflows/image-build-main.yaml: New workflow replacing the removed pr-build-image.yml that builds and pushes the Docker image on pushes to main and on version tags using the shared kyma-project/test-infra image builder.

  • .github/workflows/image-build-pr.yaml: New PR image build workflow with a two-path approach — PRs labeled pr-build-image go through an approval gate before publishing, while unlabeled PRs do a local cache-only build for validation.

  • .github/workflows/pr-build-image.yml: Removed and replaced by the new split workflows above.

  • Dockerfile: Multiple hardening changes:

    • Updated Go builder from golang:1.25 to golang:1.26.3 with explicit --platform=$BUILDPLATFORM.
    • Replaced broad COPY . . with explicit COPY cmd/ api/ internal/ to minimize build context.
    • Enabled FIPS mode via GOFIPS140=v1.0.0 and added -ldflags="-s -w" to strip debug symbols.
    • Added --chown=65532:65532 to the binary copy step.
    • Added ENV GODEBUG=fips140=only,tlsmlkem=0 to enforce FIPS-only TLS at runtime.
  • Makefile: build-installer target now also copies the sample CR to dist/instance.yaml for inclusion in releases.

  • config/default/kustomization.yaml: Uncommented the ../crd resource so CRDs are included in the generated install.yaml.

  • go.mod: Updated Go version from 1.25.3 to 1.26.3.

  • sec-scanners-config.yaml: Added **/test/** exclusion pattern to both mend and checkmarx-one scanner configurations.


  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.21.0

Copy link
Copy Markdown
Contributor

@hyperspace-insights hyperspace-insights Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Warnings:

  • Could not get issue kyma-project/gpu#123. Status: 404 - UnknownObjectException

The PR introduces a release pipeline and Dockerfile hardening, but has several significant issues: a shell-injection risk from unquoted workflow_dispatch inputs used throughout the release workflow, a pull_request_target + head-SHA checkout pattern that exposes secrets to untrusted fork code, a race condition where the GitHub Release is published before the container image is guaranteed to be available, heredoc indentation that will corrupt the release notes Markdown, and a potentially unstable FIPS-only runtime configuration on a distroless/static base image that has not been validated for that mode.

PR Bot Information

Version: 1.21.0

  • File Content Strategy: Full file content
  • LLM: anthropic--claude-4.6-sonnet
  • Agent Instructions:
  • Correlation ID: ef7c93bb-f27b-41fe-82f8-e07551557334
  • Event Trigger: pull_request.opened

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/image-build-pr.yaml
Comment thread .github/workflows/image-build-main.yaml
Comment thread Dockerfile
Comment thread .github/workflows/release.yml
@vrdc-sap vrdc-sap merged commit a7be326 into kyma-project:main May 27, 2026
8 checks passed
@vrdc-sap vrdc-sap deleted the vr-add-release-pipeline branch May 27, 2026 10:21
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