{"id":15726436,"url":"https://github.com/lirantal/docker-detect-secrets","last_synced_at":"2025-06-29T13:37:41.695Z","repository":{"id":41492028,"uuid":"187874203","full_name":"lirantal/docker-detect-secrets","owner":"lirantal","description":"A docker image for Yelp's docker-secrets python application","archived":false,"fork":false,"pushed_at":"2025-05-23T07:42:43.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-23T09:14:18.801Z","etag":null,"topics":["detect-secrets","docker","git","secrets"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/lirantal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security.txt","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-05-21T16:20:39.000Z","updated_at":"2024-01-27T17:15:27.000Z","dependencies_parsed_at":"2023-11-29T15:49:46.020Z","dependency_job_id":"bb6d9bb4-a550-4c84-b44d-376eeb0bbfff","html_url":"https://github.com/lirantal/docker-detect-secrets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lirantal/docker-detect-secrets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-detect-secrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-detect-secrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-detect-secrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-detect-secrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lirantal","download_url":"https://codeload.github.com/lirantal/docker-detect-secrets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-detect-secrets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262601234,"owners_count":23335218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["detect-secrets","docker","git","secrets"],"created_at":"2024-10-03T22:27:14.779Z","updated_at":"2025-06-29T13:37:41.670Z","avatar_url":"https://github.com/lirantal.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nA docker image to enable invoking of Yelp's [detect-secrets](https://github.com/Yelp/detect-secrets) hook command without having to install the python package.\n\nThis image is deployed to Docker Hub at: https://hub.docker.com/r/lirantal/detect-secrets\n\n# Usage\n\n## Detecting secrets in a project\n\nRuns the `detect-secrets-hook` command for a given git project, with the following options:\n\n- The current directory is assumed to be the .git root directory and so the volume mounts `pwd` to the container's `/usr/src/app` directory\n- `src/index.js` and `src/component.js` are files for which will be tested for secrets\n\n```bash\ndocker run -it --rm --name detect-secrets --volume `pwd`:/usr/src/app lirantal/detect-secrets \"src/index.js\" \"src/component.js\"\n```\n\n## Detecting secrets in a project that has a baseline\n\nIf a project has a previously created `.secrets-baseline` it can be passed as a command argument to the container:\n\n```bash\ndocker run -it --rm --name detect-secrets --volume `pwd`:/usr/src/app lirantal/detect-secrets \"--baseline .secrets-baseline\" \"src/index.js\"\n```\n\n## Detecting secrets in a monorepo style project\n\nFor projects which exhibit a structure such as:\n\n```\n| app\n  |_ .git/\n  |_ client/\n  |_ server/\n       |_ .secrets-baseline\n```\n\nit is required to tweak the execution of `detect-secrets-hook` when it runs in the container image to simulate the exact scenario of it running inside the nested `server/` directory, while mounting the top level application directory:\n\n```bash\ndocker run -it --rm --name detect-secrets --volume /path/to/root/project/dir:/usr/src/app --workdir \"/usr/src/app/server\" lirantal/detect-secrets \"src/index.js\"\n```\n\n# Developing\n\nBuilding the image from the Dockerfile and then you may execute it locally:\n\n```bash\ndocker build --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --tag detect-secrets .\n```\n\n# Author\n\nLiran Tal \u003cliran@snyk.io\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirantal%2Fdocker-detect-secrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flirantal%2Fdocker-detect-secrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirantal%2Fdocker-detect-secrets/lists"}