Repository navigation
ci: full pipeline (lint, tests, security, SBOM, image build, kubeconform) + PR size labels & badges - #28
Merged
Conversation
…d; PR size labels & badges
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.
Why
The old
python-app.ymlmixed test + publish in one job, pushed images from PRs' target branch without validation, had no unit tests running, no security scanning and no SBOM. This PR splits concerns into three clean, minimal workflows and keeps every GitHub Action component on its latest major (Dependabot's existinggithub-actionsecosystem bumps them).New workflows
ci.yml(PRs + master):lint: ruff (lint + format), mypy, plus actionlint validating the workflows themselves.unit-tests: pytest with coverage → Job Summary +coverage.xmlartifact.integration-tests: local-socket tests, no internet.security:pip-audit --strict(CVE gate) + CycloneDX SBOM artifact.docker-build: build-only validation with GHA layer cache (no push on PRs).manifest-validation: kubeconform strict onkubernetes/.release.yml(master /v*tags): buildx multi-arch (amd64 + arm64 for Raspberry Pi),docker/metadata-actiontags (latest, branch, semver, sha), build provenance, registry login via existing secrets, SBOM artifact. Image is now pushed only from master/tags, never from PRs.pr-size.yml: computes PR diff size, appliessize/xs…xllabels, publishes a “PR size” commit status (shown in the merge box; turnswarningpast 2500 lines) and a summary line — first-partyghscript, zero third-party supply chain.Badges
README gets CI, Release, PR-size and Python badges.
Housekeeping
python-app.yml(superseded).python-version: 3.x+python-version: "3.10"mismatch → singlePYTHON_VERSION=3.12env.permissions: contents: read(least privilege);pr-sizeonly getspull-requests: write+statuses: write.Depends on #1 (needs
requirements-dev.txt+ tests).