{"id":25332447,"url":"https://github.com/stanfrbd/bitsight_findings_affect_rating","last_synced_at":"2025-04-08T07:45:44.911Z","repository":{"id":193061808,"uuid":"568880980","full_name":"stanfrbd/bitsight_findings_affect_rating","owner":"stanfrbd","description":"Export Bitsight findings that affect rating in CSV format.","archived":false,"fork":false,"pushed_at":"2023-12-29T11:09:46.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T04:52:13.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/stanfrbd.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}},"created_at":"2022-11-21T15:56:23.000Z","updated_at":"2024-02-26T08:06:02.000Z","dependencies_parsed_at":"2023-09-06T16:15:00.075Z","dependency_job_id":null,"html_url":"https://github.com/stanfrbd/bitsight_findings_affect_rating","commit_stats":null,"previous_names":["stanfrbd/bitsight_findings_affect_rating"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Fbitsight_findings_affect_rating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Fbitsight_findings_affect_rating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Fbitsight_findings_affect_rating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Fbitsight_findings_affect_rating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stanfrbd","download_url":"https://codeload.github.com/stanfrbd/bitsight_findings_affect_rating/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801185,"owners_count":20998331,"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":"2025-02-14T04:52:15.427Z","updated_at":"2025-04-08T07:45:44.880Z","avatar_url":"https://github.com/stanfrbd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitsight_findings_affect_rating\n\nFor a better understanding, refer to the official Bitsight API documentation: https://help.bitsighttech.com/hc/en-us/articles/360022913734-GET-Finding-Details\n\n# Dependencies\n\nYou might want to create a [`venv`](https://docs.python.org/3/library/venv.html) before installing the dependencies.\n\n- `python3`\n- `requests`\n\n```\npip install requests\n```\n\n# Quick start\n\n## Edit the config file\n```\ncp config-sample.json config.json\n```\n\nThen edit the config with the good values.\n\n| Variable | Explaination |\n|----------|--------------|\n|`guid`| the GUID of your company|\n|`name`| the display name of your company|\n|`api_token`| mandatory|\n|`proxy_url`| the proxy, if you need one.|\n\n```\n{\n    \"companies\": [{\n            \"guid\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n            \"name\": \"My company1\"\n        },\n        {\n            \"guid\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n            \"name\": \"My company2\"\n        },\n        {\n            \"guid\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n            \"name\": \"My company3\"\n        }\n    ],\n    \"api_token\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"proxy_url\": \"\"\n}\n```\n\n## Execute the script\n\n```\nPS C:\\Users\\Me\\Test\u003e python bitsight_findings_affect_rating.py\n```\n\nor\n\n```\npython3 bitsight_findings_affect_rating.py\n```\n\n## Output\n\n- A CSV file will be created with `bitsight_findings_affect_rating-` + current date + `-export.csv`.\n\n```\nPS C:\\Users\\Me\\Test\u003e python .\\bitsight_findings_affect_rating.py\n... (output)\nGenerated CSV: ./bitsight_findings_affect_rating-2022-11-10-15_14_54-export.csv\n```\n\n# Errors\n\nIf the `config.json` is not properly filled.\n```\nGeneral error: HTTP error: 401 check your config file and API Token\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanfrbd%2Fbitsight_findings_affect_rating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstanfrbd%2Fbitsight_findings_affect_rating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanfrbd%2Fbitsight_findings_affect_rating/lists"}