Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# .github/workflows/security.yml
name: Security

on:
pull_request:
push:
branches: [main]

jobs:
secret-scan:
uses: pipelabs/tooling/.github/workflows/secret-scan.yml@main
8 changes: 8 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://github.com/evilmartians/lefthook

remotes:
- git_url: git@github.com:pipelabs/tooling.git
ref: main
refetch: true
configs:
- lefthook/security.yml
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check .",
"format:fix": "prettier --write --ignore-unknown ."
"format:fix": "prettier --write --ignore-unknown .",
"prepare": "lefthook install --force || true"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows prepare ignore fails

Low Severity

The new prepare script uses || true so a failed lefthook install does not break dependency install. On Windows, npm/yarn run scripts via cmd.exe, where true is not a command, so when install fails the ignore path fails too and yarn install exits non-zero. This repo’s prerequisites steer Windows users to Command Prompt, not Git Bash.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 462c315. Configure here.

},
"devDependencies": {
"prettier": "3.6.2"
"prettier": "3.6.2",
"lefthook": "2.1.4"
}
}
66 changes: 66 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,72 @@
# yarn lockfile v1


lefthook-darwin-arm64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-darwin-arm64/-/lefthook-darwin-arm64-2.1.4.tgz#2ad0229d2f9d2d5ca20b591b08285ab3b80fe037"
integrity sha512-BUAAE9+rUrjr39a+wH/1zHmGrDdwUQ2Yq/z6BQbM/yUb9qtXBRcQ5eOXxApqWW177VhGBpX31aqIlfAZ5Q7wzw==

lefthook-darwin-x64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-darwin-x64/-/lefthook-darwin-x64-2.1.4.tgz#0a6b49bdd02ccd6dabea9eb3eb1e75b792e2e89f"
integrity sha512-K1ncIMEe84fe+ss1hQNO7rIvqiKy2TJvTFpkypvqFodT7mJXZn7GLKYTIXdIuyPAYthRa9DwFnx5uMoHwD2F1Q==

lefthook-freebsd-arm64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-freebsd-arm64/-/lefthook-freebsd-arm64-2.1.4.tgz#775039f7cfea35bd4a7f3fad525130ab451830fa"
integrity sha512-PVUhjOhVN71YaYsVdQyNbFZ4a2jFB2Tg5hKrrn9kaWpx64aLz/XivLjwr8sEuTaP1GRlEWBpW6Bhrcsyo39qFw==

lefthook-freebsd-x64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-freebsd-x64/-/lefthook-freebsd-x64-2.1.4.tgz#5f5a12649e400f5471a565ee6be93e767afbdd86"
integrity sha512-ZWV9o/LeyWNEBoVO+BhLqxH3rGTba05nkm5NvMjEFSj7LbUNUDbQmupZwtHl1OMGJO66eZP0CalzRfUH6GhBxQ==

lefthook-linux-arm64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-linux-arm64/-/lefthook-linux-arm64-2.1.4.tgz#f560bc422978e5852ac406365f93747acecded00"
integrity sha512-iWN0pGnTjrIvNIcSI1vQBJXUbybTqJ5CLMniPA0olabMXQfPDrdMKVQe+mgdwHK+E3/Y0H0ZNL3lnOj6Sk6szA==

lefthook-linux-x64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-linux-x64/-/lefthook-linux-x64-2.1.4.tgz#da94a3902c36e1e2be94ac075a35596d1169b5a9"
integrity sha512-96bTBE/JdYgqWYAJDh+/e/0MaxJ25XTOAk7iy/fKoZ1ugf6S0W9bEFbnCFNooXOcxNVTan5xWKfcjJmPIKtsJA==

lefthook-openbsd-arm64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-openbsd-arm64/-/lefthook-openbsd-arm64-2.1.4.tgz#f5e73da1f5cc96044609253f24929dd7bc4e06db"
integrity sha512-oYUoK6AIJNEr9lUSpIMj6g7sWzotvtc3ryw7yoOyQM6uqmEduw73URV/qGoUcm4nqqmR93ZalZwR2r3Gd61zvw==

lefthook-openbsd-x64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-openbsd-x64/-/lefthook-openbsd-x64-2.1.4.tgz#ede55814c4099bb090d6644c0a7a49c20a2848f4"
integrity sha512-i/Dv9Jcm68y9cggr1PhyUhOabBGP9+hzQPoiyOhKks7y9qrJl79A8XfG6LHekSuYc2VpiSu5wdnnrE1cj2nfTg==

lefthook-windows-arm64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-windows-arm64/-/lefthook-windows-arm64-2.1.4.tgz#fdece3e657806e6489f9009212fe24dbfbd4af3c"
integrity sha512-hSww7z+QX4YMnw2lK7DMrs3+w7NtxksuMKOkCKGyxUAC/0m1LAICo0ZbtdDtZ7agxRQQQ/SEbzFRhU5ysNcbjA==

lefthook-windows-x64@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook-windows-x64/-/lefthook-windows-x64-2.1.4.tgz#87b72fc92526f3b403428029ff90128edb2506ef"
integrity sha512-eE68LwnogxwcPgGsbVGPGxmghyMGmU9SdGwcc+uhGnUxPz1jL89oECMWJNc36zjVK24umNeDAzB5KA3lw1MuWw==

lefthook@2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/lefthook/-/lefthook-2.1.4.tgz#989d53a84edfcd0caca0e61251e20bed4550c242"
integrity sha512-JNfJ5gAn0KADvJ1I6/xMcx70+/6TL6U9gqGkKvPw5RNMfatC7jIg0Evl97HN846xmfz959BV70l8r3QsBJk30w==
optionalDependencies:
lefthook-darwin-arm64 "2.1.4"
lefthook-darwin-x64 "2.1.4"
lefthook-freebsd-arm64 "2.1.4"
lefthook-freebsd-x64 "2.1.4"
lefthook-linux-arm64 "2.1.4"
lefthook-linux-x64 "2.1.4"
lefthook-openbsd-arm64 "2.1.4"
lefthook-openbsd-x64 "2.1.4"
lefthook-windows-arm64 "2.1.4"
lefthook-windows-x64 "2.1.4"

prettier@3.6.2:
version "3.6.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
Expand Down