Trim release tarball via .gitattributes export-ignore#28
Merged
Conversation
git archive (called from release.yml on every tag) was shipping the full repo snapshot — including .github/, .gitignore, .pre-commit-config.yaml, .yamllint.yml, scripts/, renovate.json, AUDIT.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md. None of those are useful to a downstream deployer of the compose templates. .gitattributes with export-ignore directives lets the working repo keep everything (contributors clone the full set) while git archive emits a lean deployer-focused tarball: - Per-stack folders with their environment-variable example files - README.md, LICENSE, SECURITY.md, VERIFICATION.md, CHANGELOG.md Verified locally with --worktree-attributes: tarball drops from 111 files to 90, top-level entries from 28 to 22. Signed-release verification (cosign + SLSA) unaffected; the workflow itself remains in the repo, just not in the per-release tarball.
wnstfy
enabled auto-merge (squash)
May 21, 2026 13:03
Contributor
Trivy misconfiguration findings (HIGH + CRITICAL)✅ No HIGH or CRITICAL misconfigurations detected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
git archive in release.yml was shipping the full repo snapshot. Adds a .gitattributes with export-ignore directives so source tarballs / zips contain only the deliverable (per-stack folders + their env example files + README/LICENSE/SECURITY/VERIFICATION/CHANGELOG). git clone unaffected.
Verified locally with --worktree-attributes: 111 -> 90 files, 28 -> 22 top-level entries. Excluded: .github/, .gitignore, .pre-commit-config.yaml, .yamllint.yml, scripts/, renovate.json, AUDIT.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md. Signed-release verification (cosign + SLSA) is unaffected.