mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-24 22:05:41 +03:00
67a584c1d4
- Put groups support behind a feature flag, and disabled by default. The reason is that it has some known issues, but we want to keep optimizing this feature. Putting it behind a feature flag could help some users, and the developers into optimizing this feature without to much trouble. Further: - Updates Rust to v1.66.0 - Updated GHA workflows - Updated Alpine to 3.17 - Updated jquery to v3.6.2 - Moved jdenticon.js to load at the bottom, fixes an issue on chromium - Added autocomplete attribute to admin login password field - Added some extra CSP options (Tested this on Safari, Firefox, Chrome, Bitwarden Desktop) - Moved uppercase convertion from runtime to compile-time using `paste` for building the environment variables, lowers heap allocations.
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
exclude: "(.*js$|.*css$)"
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: detect-private-key
|
|
- repo: local
|
|
hooks:
|
|
- id: fmt
|
|
name: fmt
|
|
description: Format files with cargo fmt.
|
|
entry: cargo fmt
|
|
language: system
|
|
types: [rust]
|
|
args: ["--", "--check"]
|
|
- id: cargo-test
|
|
name: cargo test
|
|
description: Test the package for errors.
|
|
entry: cargo test
|
|
language: system
|
|
args: ["--features", "sqlite,mysql,postgresql,enable_mimalloc", "--"]
|
|
types_or: [rust, file]
|
|
files: (Cargo.toml|Cargo.lock|rust-toolchain|.*\.rs$)
|
|
pass_filenames: false
|
|
- id: cargo-clippy
|
|
name: cargo clippy
|
|
description: Lint Rust sources
|
|
entry: cargo clippy
|
|
language: system
|
|
args: ["--features", "sqlite,mysql,postgresql,enable_mimalloc", "--", "-D", "warnings"]
|
|
types_or: [rust, file]
|
|
files: (Cargo.toml|Cargo.lock|rust-toolchain|.*\.rs$)
|
|
pass_filenames: false
|