{"id":32382590,"url":"https://github.com/tech-preta/terraform-sample","last_synced_at":"2025-10-25T01:49:11.435Z","repository":{"id":295707701,"uuid":"990980825","full_name":"Tech-Preta/terraform-sample","owner":"Tech-Preta","description":"Um template para projetos que utilizam Terraform.","archived":false,"fork":false,"pushed_at":"2025-10-17T01:16:00.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T04:49:44.884Z","etag":null,"topics":["infrastructure-as-code","terraform"],"latest_commit_sha":null,"homepage":"https://www.nataliagranato.xyz/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tech-Preta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"nataliagranato","ko_fi":"nataliagranato","buy_me_a_coffee":"nataliagranato","pix":"fada126d-7311-495f-bda2-55ec79b0a39b"}},"created_at":"2025-05-27T00:22:45.000Z","updated_at":"2025-10-17T01:16:04.000Z","dependencies_parsed_at":"2025-05-27T01:31:55.933Z","dependency_job_id":"b957bd18-3aff-4c6d-94fa-4637e2fd9446","html_url":"https://github.com/Tech-Preta/terraform-sample","commit_stats":null,"previous_names":["tech-preta/terraform-sample"],"tags_count":0,"template":true,"template_full_name":"Tech-Preta/repository-sample","purl":"pkg:github/Tech-Preta/terraform-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Fterraform-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Fterraform-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Fterraform-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Fterraform-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tech-Preta","download_url":"https://codeload.github.com/Tech-Preta/terraform-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Fterraform-sample/sbom","scorecard":{"id":514506,"data":{"date":"2025-08-19T23:58:12Z","repo":{"name":"github.com/Tech-Preta/terraform-sample","commit":"eb386b38315ca8355c7df15551fa93336f89ead9"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":6.8,"checks":[{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":8,"reason":"dependency not pinned by hash detected -- score normalized to 8","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/terraform.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Tech-Preta/terraform-sample/terraform.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/terraform.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Tech-Preta/terraform-sample/terraform.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tfscan.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/Tech-Preta/terraform-sample/tfscan.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tfscan.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/Tech-Preta/terraform-sample/tfscan.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/trivy.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Tech-Preta/terraform-sample/trivy.yml/main?enable=pin","Info:   5 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   7 out of   8 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"project was created within the last 90 days. Please review its contents carefully","details":["Warn: Repository was created within the last 90 days."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 1/4 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/osv-scanner.yml:32","Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/osv-scanner.yml:33","Info: jobLevel 'contents' permission set to 'read': .github/workflows/osv-scanner.yml:34","Info: jobLevel 'actions' permission set to 'read': .github/workflows/tfscan.yml:12","Info: jobLevel 'contents' permission set to 'read': .github/workflows/tfscan.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependabot.yml:8","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/issue.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/osv-scanner.yml:26","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18","Info: topLevel 'contents' permission set to 'read': .github/workflows/terraform.yml:4","Warn: no topLevel permission defined: .github/workflows/tfscan.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/trivy.yml:9"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"CI-Tests","score":-1,"reason":"internal error: internal error: Client.Repositories.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `bridgecrewio` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}},{"name":"SAST","score":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `bridgecrewio` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Contributors","score":3,"reason":"project has 1 contributing companies or organizations -- score normalized to 3","details":["Info: found contributions from: ifood"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}}]},"last_synced_at":"2025-08-20T01:27:26.285Z","repository_id":295707701,"created_at":"2025-08-20T01:27:26.285Z","updated_at":"2025-08-20T01:27:26.285Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280893644,"owners_count":26409279,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["infrastructure-as-code","terraform"],"created_at":"2025-10-25T01:48:24.485Z","updated_at":"2025-10-25T01:49:11.422Z","avatar_url":"https://github.com/Tech-Preta.png","language":null,"funding_links":["https://github.com/sponsors/nataliagranato","https://ko-fi.com/nataliagranato","https://buymeacoffee.com/nataliagranato","fada126d-7311-495f-bda2-55ec79b0a39b"],"categories":[],"sub_categories":[],"readme":"# Terraform Secure Template\n\nEste repositório é um template para projetos Terraform, com foco em segurança desde o início. Ele integra práticas, ferramentas e automações para garantir a proteção do código, infraestrutura e cadeia de dependências.\n\n## Funcionalidades\n\n- **Pipeline CI/CD seguro** com validações automáticas\n- **Análise de segurança de código e dependências**\n- **Política de permissões mínimas no GitHub Actions**\n- **Pronto para uso em novos projetos Terraform**\n\n## Workflows e Soluções de Segurança\n\n### 1. Terraform Format, Validate, and Test\n- **Arquivo:** `.github/workflows/terraform.yml`\n- **Função:** Formata, valida e executa testes em código Terraform a cada push ou pull request.\n- **Segurança:** Utiliza o bloco `permissions` para garantir acesso mínimo (`contents: read`).\n\n### 2. Checkov Security Scan\n- **Arquivo:** `.github/workflows/checkov.yml`\n- **Função:** Executa o [Checkov](https://www.checkov.io/) para análise estática de segurança em código IaC (Infrastructure as Code), gerando relatórios SARIF.\n- **Segurança:** Detecta más práticas, configurações inseguras e vulnerabilidades em arquivos Terraform.\n\n### 3. Trivy SBOM \u0026 Vulnerability Scan\n- **Arquivo:** `.github/workflows/trivy.yml`\n- **Função:** Gera SBOM (Software Bill of Materials) e faz varredura de vulnerabilidades em dependências e imagens, integrando resultados ao GitHub Dependency Graph.\n- **Segurança:** Ajuda a identificar componentes vulneráveis presentes no projeto.\n\n### 4. Scorecard Supply-chain Security\n- **Arquivo:** `.github/workflows/scorecard.yml`\n- **Função:** Usa o [OSSF Scorecard](https://github.com/ossf/scorecard) para avaliar práticas de segurança da cadeia de suprimentos do repositório.\n- **Segurança:** Analisa branch protection, dependabot, workflows, tokens, entre outros.\n\n### 5. OSV-Scanner\n- **Arquivo:** `.github/workflows/osv-scanner.yml`\n- **Função:** Executa o [OSV-Scanner](https://osv.dev/) para identificar vulnerabilidades conhecidas em dependências.\n- **Segurança:** Automatiza a checagem contínua de vulnerabilidades em bibliotecas e módulos.\n\n### 6. Dependency Review\n- **Arquivo:** `.github/workflows/dependency-review.yml`\n- **Função:** Bloqueia PRs que introduzem dependências vulneráveis conhecidas, usando o GitHub Dependency Review Action.\n- **Segurança:** Garante que novas dependências estejam livres de vulnerabilidades conhecidas.\n\n### 7. CodeQL Analysis (opcional)\n- **Arquivo:** (não incluído por padrão)\n- **Função:** Executa análise estática de segurança aprofundada com CodeQL para identificar vulnerabilidades no código.\n- **Segurança:** Detecta padrões de código problemáticos que podem levar a vulnerabilidades, com base em queries mantidas pela comunidade e pelo GitHub.\n- **Observação:** O uso do CodeQL é recomendado e está documentado em [SECURITY.md](SECURITY.md), mas o workflow não está incluído por padrão neste template. Para habilitar, utilize a opção \"Configure CodeQL\" na aba \"Security\" do GitHub ou adicione manualmente o workflow sugerido pela plataforma.\n\n## Outras Práticas de Segurança\n\n- **Dependabot:** Atualizações automáticas de dependências.\n- **Política de Segurança:** Veja [SECURITY.md](SECURITY.md) para detalhes sobre reporte de vulnerabilidades e práticas adotadas.\n- **Code of Conduct:** Ambiente colaborativo e respeitoso ([CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)).\n\n## Como usar este template\n\n1. Clique em `Use this template` no GitHub.\n2. Siga as instruções para criar seu novo repositório.\n3. Adapte os workflows conforme as necessidades do seu projeto.\n\n## Contato\n\nPara dúvidas ou reporte de vulnerabilidades, consulte o [SECURITY.md](SECURITY.md).\n\n---\n\nFeito com ❤️ por [Natália Granato](https://github.com/nataliagranato).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftech-preta%2Fterraform-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftech-preta%2Fterraform-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftech-preta%2Fterraform-sample/lists"}