{"id":36485967,"url":"https://github.com/bitsbeats/cronguard","last_synced_at":"2026-01-12T01:51:18.929Z","repository":{"id":57648186,"uuid":"190235958","full_name":"bitsbeats/cronguard","owner":"bitsbeats","description":"Checks crons for suspicious output, stderr and exitcode.","archived":false,"fork":false,"pushed_at":"2023-02-25T10:06:21.000Z","size":481,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T17:45:15.345Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitsbeats.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-04T16:00:34.000Z","updated_at":"2023-08-31T13:25:31.000Z","dependencies_parsed_at":"2024-06-20T17:38:11.567Z","dependency_job_id":null,"html_url":"https://github.com/bitsbeats/cronguard","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/bitsbeats/cronguard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fcronguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fcronguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fcronguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fcronguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitsbeats","download_url":"https://codeload.github.com/bitsbeats/cronguard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsbeats%2Fcronguard/sbom","scorecard":{"id":240837,"data":{"date":"2025-08-11","repo":{"name":"github.com/bitsbeats/cronguard","commit":"7e4790f1864341b50a27e005a2ff56bc4187a4a5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.6.12 not signed: https://api.github.com/repos/bitsbeats/cronguard/releases/64331157","Warn: release artifact v0.6.11 not signed: https://api.github.com/repos/bitsbeats/cronguard/releases/64328406","Warn: release artifact v0.6.10 not signed: https://api.github.com/repos/bitsbeats/cronguard/releases/63759374","Warn: release artifact v0.6.9 not signed: https://api.github.com/repos/bitsbeats/cronguard/releases/46191485","Warn: release artifact v0.6.8 not signed: https://api.github.com/repos/bitsbeats/cronguard/releases/32757288","Warn: release artifact v0.6.12 does not have provenance: https://api.github.com/repos/bitsbeats/cronguard/releases/64331157","Warn: release artifact v0.6.11 does not have provenance: https://api.github.com/repos/bitsbeats/cronguard/releases/64328406","Warn: release artifact v0.6.10 does not have provenance: https://api.github.com/repos/bitsbeats/cronguard/releases/63759374","Warn: release artifact v0.6.9 does not have provenance: https://api.github.com/repos/bitsbeats/cronguard/releases/46191485","Warn: release artifact v0.6.8 does not have provenance: https://api.github.com/repos/bitsbeats/cronguard/releases/32757288"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-17T06:39:22.853Z","repository_id":57648186,"created_at":"2025-08-17T06:39:22.853Z","updated_at":"2025-08-17T06:39:22.853Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-12T01:51:17.424Z","updated_at":"2026-01-12T01:51:18.913Z","avatar_url":"https://github.com/bitsbeats.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cronguard\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/bitsbeats/cronguard)](https://goreportcard.com/report/github.com/bitsbeats/cronguard)\n[![Build Status](https://cloud.drone.io/api/badges/bitsbeats/cronguard/status.svg)](https://cloud.drone.io/bitsbeats/cronguard)\n\nSimple wrapper to log and handle cron errors.\n\n## Usage\n\n```\n  -errfile string\n    \terror report file (default \"/var/log/cronstatus\")\n  -errfile-no-uuid\n    \thide uuid in error report file\n  -errfile-quiet\n    \thide timings in error report file\n  -lockfile string\n    \tlockfile to prevent the cron running twice, set to enable\n  -name string\n    \tcron name in syslog (default \"cron\")\n  -quiet-times string\n    \ttime ranges to ignore errors, format 'start(cron format):duration(golang duration):...\n  -regex string\n    \tregex for bad words (default \"(?im)\\\\b(err|fail|crit)\")\n  -timeout duration\n    \ttimeout for the cron, set to enable\n```\n\nExample:\n\n```sh\ncronguard -name cron.example \"command\"\n```\n\nThe command is executed with `bash -c`. You can use bash features like pipes.\n\n**Note**: Bash is required.\n\n### Sentry Support\n\nTo enable sentry you can either create a `/etc/cronguard.yaml`, create `./cronguard.yaml` or use the environment\nvariable `CRONGUARD_SENTRY_DSN`.\n\nIf one of these is set cronguard will try to send events to sentry. If thats not possible it will fallback to default\nbehavior.\n\nConfig Example:\n\n```yaml\nsentry_dsn: https://00000000000000000000000000000000@sentry.example.com/2\n```\n\n### Quiet-Times\n\nUsing `-quiet-times` one can setup time ranges during which errors are ignored. Useful to disable error handling,\nfor example, if there is a database backup running.\n\nExample:\n\n```sh\ncronguard -quiet-times \"0 2 * * *:42m:0 5 * * *:20s\" \"echo hello world\"\n```\n\nThis ignores errors starting at 2:00 for 42minutes and starting at 05:00 for 20 seconds.\n\nCron format documentation: https://godoc.org/github.com/robfig/cron#hdr-CRON_Expression_Format  \nGolang time duration documentation: https://golang.org/pkg/time/#ParseDuration\n\n## Install\n\nVia go:\n\n```sh\ngo get -u github.com/bitsbeats/cronguard\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsbeats%2Fcronguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitsbeats%2Fcronguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsbeats%2Fcronguard/lists"}