{"id":27947885,"url":"https://github.com/luckyframework/lucky_sec_tester","last_synced_at":"2025-05-07T14:38:40.396Z","repository":{"id":39643804,"uuid":"461944762","full_name":"luckyframework/lucky_sec_tester","owner":"luckyframework","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-18T14:47:45.000Z","size":41,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-06-18T17:56:40.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luckyframework.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-02-21T16:33:06.000Z","updated_at":"2024-06-18T14:47:31.000Z","dependencies_parsed_at":"2023-02-15T23:50:26.430Z","dependency_job_id":"1ed7d9fd-77a1-417d-aa74-c066eecdf62a","html_url":"https://github.com/luckyframework/lucky_sec_tester","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckyframework%2Flucky_sec_tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckyframework%2Flucky_sec_tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckyframework%2Flucky_sec_tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckyframework%2Flucky_sec_tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luckyframework","download_url":"https://codeload.github.com/luckyframework/lucky_sec_tester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252896906,"owners_count":21821356,"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-05-07T14:38:36.526Z","updated_at":"2025-05-07T14:38:40.382Z","avatar_url":"https://github.com/luckyframework.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lucky_sec_tester\n\nLuckySecTester is a thin wrapper around the [Bright SecTester](https://github.com/NeuraLegion/sec-tester-cr) used to ensure a smooth Lucky integration.\n\nUse this in your specs and CI to test security vulnerabilities.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   development_dependencies:\n     lucky_sec_tester:\n       github: luckyframework/lucky_sec_tester\n   ```\n\n2. Run `shards install`\n\n## Usage\n\nCreate a new file in `spec/setup/sec_tester.cr`\n\n```crystal\n# spec/setup/sec_tester.cr\nrequire \"lucky_sec_tester\"\n\nLuckySecTester.configure do |settings|\n  # This is your API key\n  settings.bright_token = ENV[\"BRIGHT_TOKEN\"]\n  # Your project ID which could be environment based, or for app specific\n  # if your company has many projects\n  settings.project_id = LuckyEnv.staging? \"staging-id123\" : \"default-id123\"\nend\n```\n\nNext, you'll create your spec directory for all of your security tests.\nSince these tests will make external API calls, we can use a compiler flag\nto optionally enable them.\n\n```crystal\n# spec/security_flows/security_spec.cr\n{% skip_file unless flag?(:test_security) %}\n\nrequire \"../spec_helper\"\n\ndescribe \"Security Testing\" do\n  # TODO: ...\nend\n\nprivate def scanner\n  LuckySecTester.new\nend\n```\n\n## Development\n\nTODO: Write development instructions here\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/luckyframework/lucky_sec_tester/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Jeremy Woertink](https://github.com/jwoertink) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckyframework%2Flucky_sec_tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckyframework%2Flucky_sec_tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckyframework%2Flucky_sec_tester/lists"}