ci: add lint and security workflows from workflow-basics #2

Merged
tim merged 1 commit from ci/workflow-basics into main 2026-10-12 09:31:24 +00:00
Owner

This repo had no CI at all. Adds two workflows using the shared actions from tim/workflow-basics (@v1).

Changes

  • ci.yml: ruff check and ruff format --check. A custom component has no package to install and no tests yet, so install and test are off.
  • security.yml: bandit on custom_components and gitleaks over the repository history. Runs on PRs, main and weekly. pip-audit is off: the only requirement is the py-nissan-leaf-obd-ble library, which audits itself.

Verified

  • Both run against this repo locally in python:3.14-slim: ruff clean (12 files formatted), bandit no medium/high findings, gitleaks clean over 63 commits.

Not included

  • No tests exist for the component, so there is no test job. That is the next gap here.

Generated with Claude Code

This repo had no CI at all. Adds two workflows using the shared actions from tim/workflow-basics (`@v1`). ## Changes - **ci.yml**: `ruff check` and `ruff format --check`. A custom component has no package to install and no tests yet, so install and test are off. - **security.yml**: bandit on `custom_components` and gitleaks over the repository history. Runs on PRs, main and weekly. pip-audit is off: the only requirement is the `py-nissan-leaf-obd-ble` library, which audits itself. ## Verified - Both run against this repo locally in `python:3.14-slim`: ruff clean (12 files formatted), bandit no medium/high findings, gitleaks clean over 63 commits. ## Not included - No tests exist for the component, so there is no test job. That is the next gap here. Generated with [Claude Code](https://claude.com/claude-code)
ci: add lint and security workflows from workflow-basics
All checks were successful
CI / Lint (pull_request) Successful in 9s
Security / Security scan (pull_request) Successful in 12s
7e25fd87e0
This repo had no CI at all.

- ci.yml: ruff check and format check (no package to install, no tests)
- security.yml: bandit on custom_components and gitleaks over history,
  on PRs, main and weekly

Requires tim/workflow-basics tag v1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tim merged commit 5f82cada01 into main 2026-10-12 09:31:24 +00:00
tim deleted branch ci/workflow-basics 2026-10-12 09:31:24 +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-nissan-leaf-obd-ble!2
No description provided.