{"id":16815641,"url":"https://github.com/ericzon/git-secrets-test","last_synced_at":"2025-03-17T12:28:51.120Z","repository":{"id":146720578,"uuid":"282265823","full_name":"ericzon/git-secrets-test","owner":"ericzon","description":"Project just to test git secret","archived":false,"fork":false,"pushed_at":"2020-07-24T16:19:40.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T22:17:48.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericzon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-24T16:18:15.000Z","updated_at":"2020-07-24T16:19:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"f90629a3-3c54-49bf-82be-e4d886a15225","html_url":"https://github.com/ericzon/git-secrets-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fgit-secrets-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fgit-secrets-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fgit-secrets-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fgit-secrets-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericzon","download_url":"https://codeload.github.com/ericzon/git-secrets-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244033109,"owners_count":20386877,"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":[],"created_at":"2024-10-13T10:35:02.922Z","updated_at":"2025-03-17T12:28:51.092Z","avatar_url":"https://github.com/ericzon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"GIT SECRETS test\n================\n\n\nAdding a new password pattern:\ngit secrets --add 'MyPASSWORD[0-9]+'\n\nListing current patterns in **this** repository:\ngit secrets --list\n```\nsecrets.patterns MyPASSWORD[0-9]+\n```\n\nUsing as git pre-hook:\ngit secrets --install\n```\n✓ Installed commit-msg hook to .git/hooks/commit-msg\n✓ Installed pre-commit hook to .git/hooks/pre-commit\n✓ Installed prepare-commit-msg hook to .git/hooks/prepare-commit-msg\n```\n\nExample of output when detects any password pattern in the code:\n\n```\ngit commit -m \"update: trying error again\"\nindex.js:1:const password=process.env.USER_PASSWORD || 'MyPASSWORD666';\n\n[ERROR] Matched one or more prohibited patterns\n\nPossible mitigations:\n- Mark false positives as allowed using: git config --add secrets.allowed ...\n- Mark false positives as allowed by adding regular expressions to .gitallowed at repository's root directory\n- List your configured patterns: git config --get-all secrets.patterns\n- List your configured allowed patterns: git config --get-all secrets.allowed\n- List your configured allowed patterns in .gitallowed at repository's root directory\n- Use --no-verify if this is a one-time false positive\n```\n\nEven more interesting:\n\nDetecting password pattern in git history:\ngit secrets --scan-history\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fgit-secrets-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericzon%2Fgit-secrets-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fgit-secrets-test/lists"}