{"id":37176490,"url":"https://github.com/groupe-edf/watchdog","last_synced_at":"2026-01-14T20:35:30.258Z","repository":{"id":50505427,"uuid":"270624684","full_name":"groupe-edf/watchdog","owner":"groupe-edf","description":"Watchdog allows to define custom hooks in YAML format. When attached to the official repository, some of these can serve as a way to enforce policy by rejecting certain commits or branches.","archived":false,"fork":false,"pushed_at":"2023-03-07T00:55:43.000Z","size":5698,"stargazers_count":12,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-20T15:39:01.537Z","etag":null,"topics":["ci","devops","devsecops","git","gitea","gitguardian","gitlab","go","gogs","golang","secrets","security"],"latest_commit_sha":null,"homepage":"https://groupe-edf.github.io/watchdog/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/groupe-edf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-08T10:25:14.000Z","updated_at":"2024-01-14T00:01:23.000Z","dependencies_parsed_at":"2024-06-21T16:36:21.514Z","dependency_job_id":"65230e56-ab38-4fae-b46e-74592eaae869","html_url":"https://github.com/groupe-edf/watchdog","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/groupe-edf/watchdog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupe-edf%2Fwatchdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupe-edf%2Fwatchdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupe-edf%2Fwatchdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupe-edf%2Fwatchdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/groupe-edf","download_url":"https://codeload.github.com/groupe-edf/watchdog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupe-edf%2Fwatchdog/sbom","scorecard":{"id":446421,"data":{"date":"2025-08-11","repo":{"name":"github.com/groupe-edf/watchdog","commit":"bc6943458041a9f8fea33498a92039fa36086284"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"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":"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":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/golangci-lint.yml:1","Warn: no topLevel permission defined: .github/workflows/goreleaser.yml:1","Warn: no topLevel permission defined: .github/workflows/security.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.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 1.2.3 not signed: https://api.github.com/repos/groupe-edf/watchdog/releases/43357870","Warn: release artifact 1.2.2 not signed: https://api.github.com/repos/groupe-edf/watchdog/releases/41836957","Warn: release artifact 1.2.1 not signed: https://api.github.com/repos/groupe-edf/watchdog/releases/39185940","Warn: release artifact 1.2.0 not signed: https://api.github.com/repos/groupe-edf/watchdog/releases/35243980","Warn: release artifact 1.0.0 not signed: https://api.github.com/repos/groupe-edf/watchdog/releases/34581717","Warn: release artifact 1.2.3 does not have provenance: https://api.github.com/repos/groupe-edf/watchdog/releases/43357870","Warn: release artifact 1.2.2 does not have provenance: https://api.github.com/repos/groupe-edf/watchdog/releases/41836957","Warn: release artifact 1.2.1 does not have provenance: https://api.github.com/repos/groupe-edf/watchdog/releases/39185940","Warn: release artifact 1.2.0 does not have provenance: https://api.github.com/repos/groupe-edf/watchdog/releases/35243980","Warn: release artifact 1.0.0 does not have provenance: https://api.github.com/repos/groupe-edf/watchdog/releases/34581717"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/golangci-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/golangci-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/goreleaser.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/goreleaser.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/goreleaser.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/security.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/security.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/security.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/security.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/groupe-edf/watchdog/test.yml/main?enable=pin","Warn: containerImage not pinned by hash: build/Dockerfile:1","Warn: containerImage not pinned by hash: test/data/leaks/Dockerfile.golden:1: pin your Docker image by updating alpine to alpine@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Warn: goCommand not pinned by hash: .github/workflows/goreleaser.yml:24","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2456 / GHSA-449p-3h89-pw88","Warn: Project is vulnerable to: GO-2024-2466 / GHSA-mw99-9chc-xw7r","Warn: Project is vulnerable to: GO-2025-3367 / GHSA-r9px-m959-cxf4","Warn: Project is vulnerable to: GO-2025-3368 / GHSA-v725-9546-7q7m","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq"],"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-19T06:50:31.136Z","repository_id":50505427,"created_at":"2025-08-19T06:50:31.137Z","updated_at":"2025-08-19T06:50:31.137Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":["ci","devops","devsecops","git","gitea","gitguardian","gitlab","go","gogs","golang","secrets","security"],"created_at":"2026-01-14T20:35:29.234Z","updated_at":"2026-01-14T20:35:30.237Z","avatar_url":"https://github.com/groupe-edf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watchdog - Git server-side custom hooks\n[![Actions Status](https://github.com/groupe-edf/watchdog/workflows/test/badge.svg)](https://github.com/groupe-edf/watchdog/actions)\n[![Codecov](https://codecov.io/gh/groupe-edf/watchdog/branch/feature/migrate-to-github/graph/badge.svg?token=IDCWJIZ156)](https://github.com/groupe-edf/watchdog)\n[![Go Report Card](https://goreportcard.com/badge/github.com/groupe-edf/watchdog)](https://goreportcard.com/report/github.com/groupe-edf/watchdog)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/4370/badge)](https://bestpractices.coreinfrastructure.org/projects/4370)\n\nWatchdog allows to define custom hooks in YAML format. When attached to the official repository, some of these can serve as a way to enforce policy by rejecting certain commits or branches.\n\n* [Features](#features)\n* [Installation](#installation)\n* [Usage](#usage)\n* [Roadmap](#roadmap)\n* [Contributing](#contributing)\n* [License](#license)\n\n## Example\n```yaml\nversion: \"1.0.0\"\nhooks:\n  - name: global\n    rules:\n      - type: branch\n        conditions:\n        - type: pattern\n          condition: ^(develop|master|revert-[a-z0-9-]+)|(feature|release|hotfix)/[a-z0-9-]+\n      - type: commit\n        conditions:\n        - type: email\n          condition: (?m)^[a-zA-Z.\\-]+@gmail.com$\n        - type: length\n          condition: lt 120\n          rejection_message: Commit message longer than {{ .Operand }}\n      - type: file\n        conditions:\n        - type: size\n          condition: lt 1mb\n        - type: extension\n          condition: exe\n      - type: security\n        conditions:\n        - type: secret\n          skip: docs/.*|.*.json|tests/.*\n      - type: tag\n        conditions:\n        - type: semver\n```\n\n## Features\n\n- Accept or reject commits message\n- Check files size and extension\n- Scan for secrets\n- Check branch and tags names\n- JSON reporting\n- Public git repository scans\n\n## Installation\nPlease refer to [Documentation](https://groupe-edf.github.io/watchdog/docs/deployment/install)\n\n### From source\n```bash\n$ go get -ldflags=\"-X github.com/groupe-edf/watchdog/internal/version.Version=$(cat VERSION)\" github.com/groupe-edf/watchdog\n```\nOr\n```bash\n$ git clone https://github.com/groupe-edf/watchdog \u0026\u0026 cd watchdog\n$ go install -ldflags=\"-X github.com/groupe-edf/watchdog/internal/version.Version=$(cat VERSION)\"\n```\n\n## Usage\nFirst of all, you must create a `.githooks.yml` with some rules. See [Configuration](https://groupe-edf.github.io/watchdog/docs/quickstart/usage)\n\n```bash\nUsage:\n  watchdog [command]\n\nAvailable Commands:\n  analyze     Run analysis\n  help        Help about any command\n  version     Print the version number of watchdog\n\nFlags:\n      --auth-basic-token string       authentication token used to fetch remote repositories\n      --concurrent int                concurrent worker used to run analysus\n  -c, --config string                 path to watchdog configuration file\n      --docs-link string              link to documentation\n  -h, --help                          help for watchdog\n  -f, --hook-file string              path to external .githooks.yml file\n      --hook-input string             standard input \u003cold-value\u003e SP \u003cnew-value\u003e SP \u003cref-name\u003e LF\n      --hook-type string              git server-side hook pre-receive, update or post-receive\n      --logs-format string            logging level (default \"json\")\n      --logs-level string             logging level (default \"info\")\n      --logs-path string              path to logs (default \"/var/log/watchdog/watchdog.log\")\n      --output string                 path to output file\n      --output-format string          report format (default \"text\")\n      --plugins-directory string      path to plugins directory (default \"plugins\")\n      --profile                       collect the profile to hercules.pprof.\n      --security.reveal-secrets int   full or partial reveal of secrets in report and logs\n      --uri string                    path to working directory\n      --verbose                       make the operation more talkative (default true)\n```\n\n### Local git repository\n```bash\n$ watchdog analyze \\\n  --hook-file=\".githooks.yml\"\n```\n\n### Remote git repository\n```bash\n$ watchdog analyze \\\n  --hook-file=\".githooks.yml\" \\\n  --uri=\"https://github.com/{group}/{repository}\"\n```\n\n## Roadmap\nWatchdog roadmap uses [Github milestones](https://github.com/groupe-edf/watchdog/milestones) to track the progress of the project.\n\n## Contributing\nWe would love you to contribute to `groupe-edf/watchdog`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n\n## License\nThe scripts and documentation in this project are released under the [GPL License](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupe-edf%2Fwatchdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgroupe-edf%2Fwatchdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupe-edf%2Fwatchdog/lists"}