Skip to content

Trim release tarball via .gitattributes export-ignore#28

Merged
wnstfy merged 1 commit into
mainfrom
feat/trim-release-tarball
May 21, 2026
Merged

Trim release tarball via .gitattributes export-ignore#28
wnstfy merged 1 commit into
mainfrom
feat/trim-release-tarball

Conversation

@wnstfy

@wnstfy wnstfy commented May 21, 2026

Copy link
Copy Markdown
Contributor

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.

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
wnstfy enabled auto-merge (squash) May 21, 2026 13:03
@github-actions

Copy link
Copy Markdown
Contributor

Trivy misconfiguration findings (HIGH + CRITICAL)

✅ No HIGH or CRITICAL misconfigurations detected.

@wnstfy
wnstfy merged commit 88b0051 into main May 21, 2026
3 checks passed
@wnstfy
wnstfy deleted the feat/trim-release-tarball branch May 21, 2026 13:03
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