Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support docker-based pre-commit #1448

Open
yu-iskw opened this issue Dec 17, 2024 · 0 comments
Open

Support docker-based pre-commit #1448

yu-iskw opened this issue Dec 17, 2024 · 0 comments

Comments

@yu-iskw
Copy link

yu-iskw commented Dec 17, 2024

Motivation

osv-scanner supports the pre-commit hook osv-scanner. It would be useful to offer another hook to run osv-scanner in docker.

https://github.com/google/osv-scanner/blob/f75ac88212a027207f56199bc32da8fca2e95d47/.pre-commit-hooks.yaml

For instance, [rhysd/actionlint] (https://github.com/rhysd/actionlint) provides the pre-commit hook actionlint-docker. That enables us to run the pre-commit hook in docker.

---
repos:
  - repo: https://github.com/rhysd/actionlint
    rev: v1.7.4
    hooks:
      - id: actionlint-docker
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

No branches or pull requests

1 participant