{"id":15859666,"url":"https://github.com/simar7/custom-policy-with-terraform","last_synced_at":"2026-03-18T17:04:15.961Z","repository":{"id":237438246,"uuid":"639648083","full_name":"simar7/custom-policy-with-terraform","owner":"simar7","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-11T23:11:03.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T09:51:37.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Open Policy Agent","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/simar7.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":"2023-05-11T23:10:12.000Z","updated_at":"2023-05-11T23:39:09.000Z","dependencies_parsed_at":"2024-05-01T20:40:57.506Z","dependency_job_id":"7ecc607b-74d9-45e4-bf4e-8566fa1ac3aa","html_url":"https://github.com/simar7/custom-policy-with-terraform","commit_stats":null,"previous_names":["simar7/custom-policy-with-terraform"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simar7/custom-policy-with-terraform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simar7%2Fcustom-policy-with-terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simar7%2Fcustom-policy-with-terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simar7%2Fcustom-policy-with-terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simar7%2Fcustom-policy-with-terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simar7","download_url":"https://codeload.github.com/simar7/custom-policy-with-terraform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simar7%2Fcustom-policy-with-terraform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29123582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T13:58:18.919Z","status":"ssl_error","status_checked_at":"2026-02-05T13:57:56.289Z","response_time":65,"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":[],"created_at":"2024-10-05T21:22:47.934Z","updated_at":"2026-02-05T14:04:17.865Z","avatar_url":"https://github.com/simar7.png","language":"Open Policy Agent","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Demo of using custom policy with terraform\n\n```shell\ntrivy  config  --config-policy=. --severity=CRITICAL --namespaces=user .  \n2023-05-11T17:08:28.108-0600    INFO    Misconfiguration scanning is enabled\n2023-05-11T17:08:28.908-0600    INFO    Detected config files: 1\n\nmain.tf (terraform)\n\nTests: 1 (SUCCESSES: 0, FAILURES: 1, EXCEPTIONS: 0)\nFailures: 1 (CRITICAL: 1)\n\nCRITICAL: Rego policy rule: user.foobar.ABC001.deny\n════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════\nBad buckets are bad because they are not good.\n────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\n main.tf:2\n────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\n   1   resource \"aws_s3_bucket\" \"my-bucket\" {\n   2 [    bucket = \"evil\"\n   3   }\n────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimar7%2Fcustom-policy-with-terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimar7%2Fcustom-policy-with-terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimar7%2Fcustom-policy-with-terraform/lists"}