Skip to content

ci(ee): verify buildah >= 1.24 before building with --build-arg#552

Merged
cidrblock merged 3 commits intoansible:mainfrom
cidrblock:fix/buildah-version-check
Mar 25, 2026
Merged

ci(ee): verify buildah >= 1.24 before building with --build-arg#552
cidrblock merged 3 commits intoansible:mainfrom
cidrblock:fix/buildah-version-check

Conversation

@cidrblock
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a "Verify buildah version" step to the scaffolded EE build workflow (ee-build.yml.j2) that fails the build if buildah < 1.24 is detected.
  • Buildah versions before 1.24 leaked ARG values into image history metadata (containers/buildah#3609, fixed Nov 2021). Since the workflow passes Automation Hub tokens via --build-arg, this check ensures the runner's buildah is safe.
  • GitHub Actions ubuntu-latest ships 1.33+, but self-hosted runners may run older versions — this provides a clear, early error rather than a silent security issue.

Related

Test plan

  • pytest — 196 passed, 3 skipped
  • pre-commit run --all-files — all checks passed
  • Fixtures regenerated to include the new step

Made with Cursor

Buildah versions before 1.24 leaked ARG values into image history
metadata (containers/buildah#3609, fixed Nov 2021). The scaffolded
workflow passes Automation Hub tokens via --build-arg, so add a
pre-build version check to fail fast on runners with outdated buildah.

Made-with: Cursor
@cidrblock cidrblock merged commit c7c4605 into ansible:main Mar 25, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant