Skip to content

CI hardening - #318

Merged
gardener-prow[bot] merged 1 commit into
gardener:masterfrom
DockToFuture:ci-hardening
Nov 11, 2026
Merged

gardener-prow[bot] merged 1 commit into
gardener:masterfrom
DockToFuture:ci-hardening

Conversation

@DockToFuture

Copy link
Copy Markdown
Member

/kind enhancement
/area networking

What this PR does / why we need it:

This ports the CI hardening measures from gardener/gardener-extension-networking-cilium#829 to this repository.

Changes:

  • renovate.json5: add top-level pinDigests: true so image/action digests are pinned and maintained, and build inputs cannot be swapped under a mutable tag. Gate every automerge: true package rule (golang/alpine, general gomod, gardener gomod group, github-actions) with matchUpdateTypes: ["patch", "digest"] so only patch and digest bumps automerge.
  • head-update.yaml: restrict the push: trigger to the master branch. This repo uses head-update.yaml for its push/PR snapshot build instead of a non-release.yaml, so the measure is applied there. Only pushes to the default branch now publish credentialed snapshot artifacts; other branches are still validated through pull_request without publish credentials.
  • release.yaml: add a non-cancelling concurrency group so a re-dispatch cannot race an in-flight release during the tag/publish/bump window, and guard both the build and release-to-github-and-bump jobs so only dispatches from the default branch can mint a release.
  • Dockerfile: pin the golang:1.27.4 and alpine:3.24.4 base images by digest (tags kept). FROM scratch is intentionally left unpinned.
  • build.yaml: remove default: snapshot from the mode workflow_call input so callers must set the mode explicitly.

No measures were skipped. M2 was adapted to this repo's head-update.yaml layout (there is no non-release.yaml).

Release note:

none

- renovate: add top-level pinDigests to pin and maintain image/action digests
- renovate: gate automerge rules to patch + digest update types
- head-update.yaml: restrict the push trigger to the master branch so only
  default-branch pushes publish credentialed snapshot artifacts
- release.yaml: add a non-cancelling concurrency group and guard the build and
  release jobs to the default branch
- Dockerfile: pin golang and alpine base images by digest
- build.yaml: remove the default value of the mode workflow_call input

Signed-off-by: Sebastian Stauch <sebastian.stauch@sap.com>
@DockToFuture
DockToFuture requested a review from a team as a code owner November 11, 2026 12:20
@gardener-prow gardener-prow Bot added kind/enhancement Enhancement, improvement, extension area/networking Networking related size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 11, 2026
@axel7born

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@gardener-prow gardener-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 11, 2026
@gardener-prow

gardener-prow Bot commented Nov 11, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: axel7born

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 11, 2026
@gardener-prow
gardener-prow Bot merged commit f4a2c97 into gardener:master Nov 11, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/networking Networking related kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants