Skip to content
Snippets Groups Projects
Commit fbc56ee8 authored by Ole Langbehn's avatar Ole Langbehn
Browse files

HOLI-7700 remove yarn global

parent 4db2ccb1
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,3 @@ export PATH=./helpers:"$PATH"
source_env_if_exists .envrc.local
source_env_if_exists .envrc.local.backends
type yarn >/dev/null 2>&1 && PATH="$PATH:$(yarn global bin)"
export PATH
\ No newline at end of file
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
gitleaks protect --staged -v -c .gitleaks.toml
repos:
- repo: local
hooks:
- id: gitleaks
name: gitleaks
language: system
entry: gitleaks protect --staged -v -c .gitleaks.toml
pass_filenames: false
always_run: true
......@@ -34,8 +34,10 @@ checkoutAndPrepare() {
pushd "$2"
direnv allow .
eval "$(direnv export bash)"
# install git hooks via husky
husky install
# disable husky, this can be removed after a while, let's say april 2024
git config --unset-all core.hooksPath || true
# install git hooks via pre-commit
pre-commit install
[ -x ./init.sh ] && ./init.sh
popd
}
......@@ -87,11 +89,11 @@ brewInstall libmagic # needed by okuna, missing on mac, we just install it indep
# install velociraptor for deno projects
isAvailable vr || deno install -qAn vr -f https://deno.land/x/velociraptor@1.5.0/cli.ts
# we want to use mprocs for running the development environments
isAvailable mprocs || yarn global add mprocs
# we want to use husky for pre-commit hooks
isAvailable husky || yarn global add husky
# in husky pre-commit hooks, we're using gitleaks for secret detection
brewInstall gitleaks
isAvailable mprocs || brewInstall mprocs
# in pre-commit hooks, we're using gitleaks for secret detection
isAvailable pre-commit || brewInstall pre-commit
isAvailable gitleaks || brewInstall gitleaks
pre-commit install # in holi-meta. The other repositories are initialized during checkout
# check out and initialize the repositories
checkoutAndPrepare git@gitlab.holi.team:app/holi-frontends.git holi-frontends
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment