Skip to content

chore: migrate to new cicd-workflows with custom pre-commit config#28

Draft
alexmohr wants to merge 1 commit into
mainfrom
chore/update-cicd-workflows
Draft

chore: migrate to new cicd-workflows with custom pre-commit config#28
alexmohr wants to merge 1 commit into
mainfrom
chore/update-cicd-workflows

Conversation

@alexmohr
Copy link
Copy Markdown

@alexmohr alexmohr commented May 8, 2026

Summary

  • Add repository-level .pre-commit-config.yaml with all required hooks (formatting, linting, security, license headers, Rust tooling)
  • Add canonical config files (.yamlfmt, .markdownlint.yaml, .rustfmt.toml) from cicd-workflows shared-config
  • Remove old rustfmt.toml (replaced by canonical .rustfmt.toml)
  • Update pre-commit.yaml workflow to use the composite action with rust-toolchain input
  • Update pr-checks.yml SHA pins to feat/pre-commit-hook-args-config branch

Checklist

  • I have tested my changes locally
  • I have added or updated documentation
  • I have linked related issues or discussions
  • I have added or updated tests

Related

Notes for Reviewers

The cicd-workflows pin points to the feat/pre-commit-hook-args-config branch. Once eclipse-opensovd/cicd-workflows#39 merges to main, the SHA pin should be updated to the merge commit on main.


Alexander Mohr alexander.m.mohr@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Provider Information

- Add .pre-commit-config.yaml with all required hooks (check-yaml,
  check-toml, check-json, yamlfmt, markdownlint, ruff, gitleaks,
  shellcheck, conventional-pre-commit, reuse-annotate, cargo-fmt,
  clippy, validate-cargo-lints, check-hooks)
- Add canonical .yamlfmt, .markdownlint.yaml, .rustfmt.toml from cicd
- Remove old rustfmt.toml (replaced by canonical .rustfmt.toml)
- Update pre-commit.yaml to use composite action with rust-toolchain input
- Update pr-checks.yml to point to feat/pre-commit-hook-args-config branch
@alexmohr alexmohr requested a review from a team as a code owner May 8, 2026 09:26
@alexmohr alexmohr marked this pull request as draft May 8, 2026 09:26
@alexmohr
Copy link
Copy Markdown
Author

alexmohr commented May 8, 2026

@arvindr19 I'm currently going around in OpenSOVD and aligning our pre commit validations. The changes in here should be pretty minimal as you already use most of the things. Changes in core are a bit bigger because I am also trying to align the rust format settings.

Will be part of the next architecture agenda eclipse-opensovd/opensovd#8 (comment) please join if you find the time.

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