{"id":21915532,"url":"https://github.com/terotests/robowatch","last_synced_at":"2026-03-10T10:32:04.611Z","repository":{"id":49771653,"uuid":"196091989","full_name":"terotests/robowatch","owner":"terotests","description":"Directory event watch with configuration","archived":false,"fork":false,"pushed_at":"2021-06-10T01:01:51.000Z","size":58,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T06:54:02.246Z","etag":null,"topics":["build-automation","build-tool","nodejs","shell-scripting"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terotests.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-09T22:25:34.000Z","updated_at":"2022-07-30T15:53:16.000Z","dependencies_parsed_at":"2022-09-10T16:11:18.784Z","dependency_job_id":null,"html_url":"https://github.com/terotests/robowatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/terotests/robowatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Frobowatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Frobowatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Frobowatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Frobowatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terotests","download_url":"https://codeload.github.com/terotests/robowatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Frobowatch/sbom","scorecard":{"id":874563,"data":{"date":"2025-08-11","repo":{"name":"github.com/terotests/robowatch","commit":"c9c7c39bf56e932f170ef055db1953657d8e2013"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Info: FSF or OSI recognized license: MIT License: LICENCE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T05:28:50.713Z","repository_id":49771653,"created_at":"2025-08-24T05:28:50.713Z","updated_at":"2025-08-24T05:28:50.713Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30330573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-automation","build-tool","nodejs","shell-scripting"],"created_at":"2024-11-28T19:12:39.689Z","updated_at":"2026-03-10T10:32:04.572Z","avatar_url":"https://github.com/terotests.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robowatch\n\nConfigurable filesystem observer and script runner.\n\n**NEW** uses Facebook Watchman 🔥if available 🚀\n\n- Listens to changes to the filesystem and runs scripts based on events defined in `Robo` -file\n- Multiple files and directory trees can be followed\n- Ignore pattern `!something`\n- Events can be delayed using `debounce`\n- Configuration changes are loaded dynamically\n- You can have comments like `; here is explanation what this should do`\n\nYou can use it to create local build pipelines, automatic test runs etc.\n\n## Getting Started\n\nFirst install the command line utility `rwatch`\n\n```\nnpm install -g robowatch\n```\n\nThen create a file `Robo` with watch instructions, following the [chokidar](https://github.com/paulmillr/chokidar) format.\n\n```\n\nwatch src/**.ts {\n  shell {\n    debounce 3 \"waiting 3 seconds\"\n    \"cd src \u0026\u0026 tsc\"\n  }\n}\n```\n\n## Comments\n\n```\n; here is a comment\nwatch somefile {\n\n}\n```\n\n## Running commands in the shell\n\nPure Shell commands are quoted like `'echo \"Hello World\"'`\n\nEach quoted command is run as separate exec under selected shell.\n\n```\nwatch somefile {\n  shell {\n    ; single quotes\n    'ls -al'\n\n    ; double quotes\n    \"ls -al\"\n\n    ; back-trick\n    `cd dir;\n      echo $(dirname \"$FILE\");\n      echo $FILE;\n    `\n\n  }\n}\n```\n\n## Select the shell\n\nThe shell command can have `use \"/bin/bash\"` to select the running shell\n\n```\nwatch (\n    !./**/node_modules/**\n    ./**/package.json\n  ) {\n  shell use \"/bin/bash\" {\n    ; display which shell we are using\n    'echo $0'\n  }\n}\n```\n\n## debounce\n\nDebounce will some seconds before starting. If new events arrive the\nstartup is delayed N seconds more.\n\n```\n debounce 3 \"waiting 3 seconds\"\n```\n\nExample\n\n```\nwatch *.css {\n  shell use \"/bin/bash\" {\n    debounce 5 \"waiting before \"\n```\n\n## \\$FILE\n\nShow the changed filename\n\n```\nwatch src/**.ts {\n  shell {\n    `\n      echo $(dirname \"$FILE\");\n      echo $FILE;\n    `\n  }\n}\n```\n\n## Multiple files\n\nMultiple files can be observer\n\n```\nwatch (\n    file1\n    file2\n    robowatch/src/**/*.ts\n  ) {\n\n}\n```\n\n## Ignoring files\n\nDo not follow changes in node_modules\n\n```\nwatch (\n    ./**.ts\n    !./**/node_modules/**\n  ) {\n\n}\n```\n\n# Examples\n\n## Audit package.json files\n\nExample uses MacOS `osascript` to display messages to user\n\n```\nwatch (\n    !./**/node_modules/**\n    ./**/package.json\n  ) {\n  shell use \"/bin/bash\" {\n    debounce 5 \"auditing package.json\"\n    `\n      DIR=$(dirname \"$FILE\");\n      echo $DIR;\n      cd $DIR;\n      RVOF=$(npm audit);\n      retVal=$?\n      if [ $retVal -ne 0 ]; then\n        MSG='say \"You loser! npm audit for ';\n        MSG+=\"$FILE\";\n        MSG+=' failed\"';\n        echo \"$MSG\" | osascript;\n      else\n        MSG='display notification \"✅ npm audit for ';\n        MSG+=\"$FILE\";\n        MSG+=' was success!\"';\n        echo \"$MSG\" | osascript;\n      fi;\n    `\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterotests%2Frobowatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterotests%2Frobowatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterotests%2Frobowatch/lists"}