ci: use the shared workflow-basics actions, add security scans #7

Merged
tim merged 3 commits from chore/maintenance-2026-10 into main 2026-10-12 10:36:37 +00:00
Owner

Moves the workflows onto the shared actions from tim/workflow-basics (@v1). One commit, no version bump (CI only).

Changes

  • docker.yml: the test job calls python-test; the image job calls docker-publish (multi-arch, branch/sha/semver tags, provenance and SBOM attestations on release tags). The CHANGELOG check and the Forgejo release job stay here, they are specific to this project.
  • auto-tag.yml calls the shared auto-tag action (same behaviour: version from pyproject.toml, CHANGELOG entry required, PAT so the tag push triggers the pipeline).
  • security.yml (new): bandit on app, pip-audit of the installed environment, gitleaks over history. Runs on PRs, main and weekly.
  • release.yml removed: a manual dispatch that only echoed "create the release manually", superseded by auto-tag.
  • Secrets: the global REPO_WRITER_PAT replaces REGISTRY_TOKEN and vars.REGISTRY_USERNAME. The release job uses forgejo.server_url and forgejo.repository instead of a hardcoded host and user.

Verified

  • The three actions run against this repo locally in python:3.14-slim: lint clean, 312 tests pass, bandit no medium/high findings, pip-audit clean, gitleaks clean over 143 commits.
  • Each action's own self-test passes on the runners (tim/workflow-basics).

Notes

  • Registry layer caching is dropped (gha and registry cache), so image builds may be slower.
  • The release note's image link is now built from the server URL instead of a hardcoded packages path.
  • docker-publish's login and push path is first exercised for real by this branch's push run.
  • Merging this to main runs the new auto-tag.yml, which should report "Tag v0.5.0 already exists" and do nothing.

Generated with Claude Code

Moves the workflows onto the shared actions from tim/workflow-basics (`@v1`). One commit, no version bump (CI only). ## Changes - **docker.yml**: the test job calls `python-test`; the image job calls `docker-publish` (multi-arch, branch/sha/semver tags, provenance and SBOM attestations on release tags). The CHANGELOG check and the Forgejo release job stay here, they are specific to this project. - **auto-tag.yml** calls the shared `auto-tag` action (same behaviour: version from `pyproject.toml`, CHANGELOG entry required, PAT so the tag push triggers the pipeline). - **security.yml** (new): bandit on `app`, pip-audit of the installed environment, gitleaks over history. Runs on PRs, main and weekly. - **release.yml removed**: a manual dispatch that only echoed "create the release manually", superseded by auto-tag. - **Secrets**: the global `REPO_WRITER_PAT` replaces `REGISTRY_TOKEN` and `vars.REGISTRY_USERNAME`. The release job uses `forgejo.server_url` and `forgejo.repository` instead of a hardcoded host and user. ## Verified - The three actions run against this repo locally in `python:3.14-slim`: lint clean, 312 tests pass, bandit no medium/high findings, pip-audit clean, gitleaks clean over 143 commits. - Each action's own self-test passes on the runners (tim/workflow-basics). ## Notes - **Registry layer caching is dropped** (gha and registry cache), so image builds may be slower. - The release note's image link is now built from the server URL instead of a hardcoded packages path. - `docker-publish`'s login and push path is first exercised for real by this branch's push run. - Merging this to `main` runs the new `auto-tag.yml`, which should report "Tag v0.5.0 already exists" and do nothing. Generated with [Claude Code](https://claude.com/claude-code)
ci: use the shared workflow-basics actions
Some checks failed
Test & Build / Lint and test (push) Successful in 26s
Test & Build / Lint and test (pull_request) Successful in 26s
Test & Build / Build & Push Docker Image (pull_request) Has been skipped
Test & Build / Create Forgejo Release (pull_request) Has been skipped
Security / Security scan (pull_request) Successful in 46s
Test & Build / Build & Push Docker Image (push) Failing after 3s
Test & Build / Create Forgejo Release (push) Has been skipped
730479059c
- docker.yml: test job calls python-test; the image job calls
  docker-publish (multi-arch, branch/sha/semver tags, provenance and
  SBOM on release tags). The CHANGELOG check and the Forgejo release job
  stay here, they are specific to this project
- auto-tag.yml calls the shared auto-tag action
- security.yml (new): bandit, pip-audit and gitleaks on PRs, main and
  weekly
- release.yml removed: a manual dispatch that echoed "create the
  release manually", superseded by auto-tag
- secrets: the global REPO_WRITER_PAT replaces REGISTRY_TOKEN and
  vars.REGISTRY_USERNAME; the release job uses forgejo.server_url and
  forgejo.repository instead of a hardcoded host and user

Registry layer caching (gha and registry cache) is dropped, so image
builds may be slower.

Requires tim/workflow-basics tag v1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ci: pin the shared actions to v1.0.1
All checks were successful
Test & Build / Lint and test (push) Successful in 28s
Test & Build / Lint and test (pull_request) Successful in 28s
Test & Build / Build & Push Docker Image (pull_request) Has been skipped
Test & Build / Create Forgejo Release (pull_request) Has been skipped
Security / Security scan (pull_request) Successful in 48s
Test & Build / Build & Push Docker Image (push) Successful in 4m31s
Test & Build / Create Forgejo Release (push) Has been skipped
8be0f01621
The moving v1 tag still points at v1.0.0, whose docker-publish cannot
build multi-platform images on the runner's default builder. v1.0.1
carries the fix. Pin the immutable tag until v1 is moved; the pins can
go back to @v1 afterwards.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
ci: follow workflow-basics main instead of a pinned tag
All checks were successful
Test & Build / Lint and test (push) Successful in 28s
Test & Build / Lint and test (pull_request) Successful in 27s
Test & Build / Build & Push Docker Image (pull_request) Has been skipped
Test & Build / Create Forgejo Release (pull_request) Has been skipped
Test & Build / Build & Push Docker Image (push) Successful in 5s
Test & Build / Create Forgejo Release (push) Has been skipped
Security / Security scan (pull_request) Successful in 53s
cddc634d2f
The actions' self-tests gate every merge to workflow-basics main, so
following main is simpler and a fix reaches this repo as soon as it is
merged there. main currently equals v1.0.1, so behaviour is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
tim merged commit 51d6fab93d into main 2026-10-12 10:36:37 +00:00
tim deleted branch chore/maintenance-2026-10 2026-10-12 10:36:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/hass-mcp!7
No description provided.