{"id":48706279,"url":"https://github.com/codeby-nurgul/dotnet-sample","last_synced_at":"2026-04-11T11:17:17.915Z","repository":{"id":299614195,"uuid":"1003577098","full_name":"codeby-nurgul/dotnet-sample","owner":"codeby-nurgul","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-17T12:14:03.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-17T12:41:55.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/codeby-nurgul.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,"zenodo":null}},"created_at":"2025-06-17T11:02:32.000Z","updated_at":"2025-06-17T12:14:07.000Z","dependencies_parsed_at":"2025-06-17T12:53:02.820Z","dependency_job_id":null,"html_url":"https://github.com/codeby-nurgul/dotnet-sample","commit_stats":null,"previous_names":["codeby-nurgul/dotnet-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeby-nurgul/dotnet-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeby-nurgul%2Fdotnet-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeby-nurgul%2Fdotnet-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeby-nurgul%2Fdotnet-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeby-nurgul%2Fdotnet-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeby-nurgul","download_url":"https://codeload.github.com/codeby-nurgul/dotnet-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeby-nurgul%2Fdotnet-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31678030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: 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":"2026-04-11T11:17:17.243Z","updated_at":"2026-04-11T11:17:17.905Z","avatar_url":"https://github.com/codeby-nurgul.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotnet-sample\n\nThis is a sample .NET Web API project containerized with Docker and equipped with a GitHub Actions CI/CD pipeline. It demonstrates environment-specific deployment workflows using `test` and `main` branches.\n\n---\n\n## 🚀 Project Overview\n\n- Built with **ASP.NET Core Web API**\n- Containerized using **Docker**\n- CI/CD implemented via **GitHub Actions**\n- Quality and security checks powered by **SonarCloud** and **Trivy**\n- Images are automatically pushed to **Docker Hub** with `test` and `main` tags\n\n---\n\n## 🛠️ Technologies Used\n\n- [.NET 8](https://dotnet.microsoft.com/)\n- Docker \u0026 Docker Compose\n- GitHub Actions\n- [SonarCloud](https://sonarcloud.io)\n- [Trivy](https://aquasecurity.github.io/trivy/)\n\n---\n\n## 📁 Branch-based Deployment\n\n| Branch | Action Trigger     | Docker Tag | Description                    |\n|--------|--------------------|------------|--------------------------------|\n| `test` | Push               | `:test`    | For testing and staging builds |\n| `main` | Merge from `test`  | `:main`    | For production-ready builds    |\n\nEach branch has its own GitHub Actions workflow that builds, scans, and pushes the Docker image to Docker Hub.\n\n---\n\n## 📦 Docker Hub\n\nView published images on Docker Hub:  \n👉 [https://hub.docker.com/r/codebynurgul/dotnet-sample](https://hub.docker.com/r/codebynurgul/dotnet-sample)\n\n---\n\n## 🧪 Quality \u0026 Security Automation\n\nThis project includes automatic checks as part of the CI pipeline:\n\n### 🔍 SonarCloud Analysis\n\n- Performs **static code analysis** on every push to `main`\n- Checks for:\n  - Bugs\n  - Code smells\n  - Maintainability issues\n  - Security hotspots\n- Results visible publicly on SonarCloud  \n  🔗 [SonarCloud Dashboard](https://sonarcloud.io/project/overview?id=codeby-nurgul_dotnet-sample)\n\n### 🔒 Trivy Security Scan\n\n- Scans the **project file system** during each CI build\n- Detects:\n  - Known vulnerabilities (CVEs)\n  - Dependency flaws in NuGet packages\n- Ensures secure and compliant builds\n\n---\n\n## 🐳 Running Locally\n\nClone the repository and use Docker Compose depending on the environment you want to simulate.\n\n### ▶️ For test image\n```bash\ndocker-compose -f docker-compose.test.yml up -d\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeby-nurgul%2Fdotnet-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeby-nurgul%2Fdotnet-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeby-nurgul%2Fdotnet-sample/lists"}