{"id":46575067,"url":"https://github.com/codebeltnet/git-checkout","last_synced_at":"2026-03-07T09:33:01.641Z","repository":{"id":231386628,"uuid":"781660339","full_name":"codebeltnet/git-checkout","owner":"codebeltnet","description":"An opinionated GitHub Action for preparing a repository as part of your CI flow.","archived":false,"fork":false,"pushed_at":"2024-09-06T14:01:19.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-06T16:25:06.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/codebeltnet.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-03T19:58:01.000Z","updated_at":"2024-09-06T14:01:14.000Z","dependencies_parsed_at":"2024-04-03T21:25:54.479Z","dependency_job_id":"87053c1f-c5d3-4f61-90ca-09459ee8e88d","html_url":"https://github.com/codebeltnet/git-checkout","commit_stats":null,"previous_names":["codebeltnet/git-checkout"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/codebeltnet/git-checkout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fgit-checkout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fgit-checkout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fgit-checkout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fgit-checkout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebeltnet","download_url":"https://codeload.github.com/codebeltnet/git-checkout/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fgit-checkout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30210850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"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-03-07T09:33:00.982Z","updated_at":"2026-03-07T09:33:01.627Z","avatar_url":"https://github.com/codebeltnet.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Checkout\n\nChecks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it. Leverages the official [checkout action](https://github.com/actions/checkout) pre-configured specifically for the majority. \n\n\u003e This action is part of the Codebelt umbrella and ensures a consistent way of: \n\u003e \n\u003e - Defining your CI/CD pipeline \n\u003e - Structuring your repository\n\u003e - Keeping your codebase small and feasible\n\u003e - Writing clean and maintainable code\n\u003e - Deploying your code to different environments\n\u003e - Automating as much as possible\n\u003e\n\u003e A paved path to excel as a DevSecOps Engineer.\n\n## Usage\n\nTo use this action in your GitHub repository, you can follow these steps:\n\n```yaml\nuses: codebeltnet/git-checkout@v1\n```\n\n### Inputs\n\n```yaml\nwith:\n  # The branch, tag or SHA to checkout. Default is the head of the default branch in the repository.\n  ref:\n  # Upload the repo as-is for debug purposes. Default is to not upload.\n  uploadCheckout:\n```\n\n### Outputs\n\nThis action has no outputs.\n\n## Examples\n\n### Fetch entire repository\n\n\n```yaml\nsteps:\n  - name: Checkout\n    uses: codebeltnet/git-checkout@v1\n```\n\n### Sample workflow for .NET Class Library\n\n```yaml\nname: Generic CI/CD Pipeline (.NET Library)\non:\n  push:\n    branches: [main]\n    paths-ignore:\n      - .codecov\n      - .docfx\n      - .github\n      - .nuget\n  pull_request:\n    branches: [main]\n  workflow_dispatch:\n    inputs:\n      configuration:\n        type: choice\n        description: The build configuration to use in the deploy stage.\n        required: true\n        default: Release\n        options:\n          - Debug\n          - Release\n\njobs:\n  build:\n    name: 🛠️ Build\n    runs-on: ubuntu-22.04\n    outputs:\n      version: ${{ steps.minver-calculate.outputs.version }}\n    steps:\n      - name: Checkout\n        uses: codebeltnet/git-checkout@v1\n\n      - name: Install .NET\n        uses: codebeltnet/install-dotnet@v1\n\n      - name: Install MinVer\n        uses: codebeltnet/dotnet-tool-install-minver@v1\n\n      - id: minver-calculate\n        name: Calculate Version\n        uses: codebeltnet/minver-calculate@v1\n\n      - name: Download strongname.snk file\n        uses: codebeltnet/gcp-download-file@v1\n        with: \n          serviceAccountKey: ${{ secrets.GCP_TOKEN }}\n          bucketName: ${{ secrets.GCP_BUCKETNAME }}\n          objectName: strongname.snk\n\n      - name: Restore Dependencies\n        uses: codebeltnet/dotnet-restore@v1\n\n      - name: Build for Preview\n        uses: codebeltnet/dotnet-build@v1\n        with:\n          configuration: Debug\n\n      - name: Build for Production\n        uses: codebeltnet/dotnet-build@v1\n        with:\n          configuration: Release\n\n  pack:\n    name: 📦 Pack\n    runs-on: ubuntu-22.04\n    strategy:\n      matrix:\n        configuration: [Debug, Release]\n    needs: [build]\n    steps:     \n      - name: Pack for ${{ matrix.configuration }}\n        uses: codebeltnet/dotnet-pack@v1\n        with:\n          configuration: ${{ matrix.configuration }}\n          uploadPackedArtifact: true\n          version: ${{ needs.build.outputs.version }}\n\n  test:\n    name: 🧪 Test\n    needs: [build]\n    strategy:\n      matrix:\n        os: [ubuntu-22.04, windows-2022]\n    runs-on: ${{ matrix.os }}\n    steps:\n      - name: Checkout\n        uses: codebeltnet/git-checkout@v1\n\n      - name: Install .NET\n        uses: codebeltnet/install-dotnet@v1\n\n      - name: Install .NET Tool - Report Generator\n        uses: codebeltnet/dotnet-tool-install-reportgenerator@v1\n\n      - name: Test with Debug build\n        uses: codebeltnet/dotnet-test@v1\n        with:\n          configuration: Debug\n          buildSwitches: -p:SkipSignAssembly=true\n\n      - name: Test with Release build\n        uses: codebeltnet/dotnet-test@v1\n        with:\n          configuration: Release\n          buildSwitches: -p:SkipSignAssembly=true\n\n  sonarcloud:\n    name: 🔬 Code Quality Analysis\n    needs: [build,test]\n    runs-on: ubuntu-22.04\n    steps:\n      - name: Checkout\n        uses: codebeltnet/git-checkout@v1\n\n      - name: Install .NET\n        uses: codebeltnet/install-dotnet@v1\n\n      - name: Install .NET Tool - Sonar Scanner\n        uses: codebeltnet/dotnet-tool-install-sonarscanner@v1\n\n      - name: Restore Dependencies\n        uses: codebeltnet/dotnet-restore@v1\n\n      - name: Run SonarCloud Analysis\n        uses: codebeltnet/sonarcloud-scan@v1\n        with:\n          token: ${{ secrets.SONAR_TOKEN }}\n          organization: your-sonarcloud-organization\n          projectKey: your-sonarcloud-project-key\n          version: ${{ needs.build.outputs.version }}\n\n      - name: Build\n        uses: codebeltnet/dotnet-build@v1\n        with:\n          buildSwitches: -p:SkipSignAssembly=true\n          uploadBuildArtifact: false\n\n      - name: Finalize SonarCloud Analysis\n        uses: codebeltnet/sonarcloud-scan-finalize@v1\n        with:\n          token: ${{ secrets.SONAR_TOKEN }}\n\n  codecov:\n    name: 📊 Code Coverage Analysis\n    needs: [build,test]\n    runs-on: ubuntu-22.04\n    steps:\n      - name: Checkout\n        uses: codebeltnet/git-checkout@v1\n\n      - name: Run CodeCov Analysis\n        uses: codebeltnet/codecov-scan@v1\n        with:\n          token: ${{ secrets.CODECOV_TOKEN }}\n          repository: your-github-repository\n          \n  codeql:\n    name: 🛡️ Security Analysis\n    needs: [build,test]\n    runs-on: ubuntu-22.04\n    steps:\n      - name: Checkout\n        uses: codebeltnet/git-checkout@v1\n\n      - name: Install .NET\n        uses: codebeltnet/install-dotnet@v1\n\n      - name: Restore Dependencies\n        uses: codebeltnet/dotnet-restore@v1\n\n      - name: Prepare CodeQL SAST Analysis\n        uses: codebeltnet/codeql-scan@v1\n\n      - name: Build\n        uses: codebeltnet/dotnet-build@v1\n        with:\n          buildSwitches: -p:SkipSignAssembly=true\n          uploadBuildArtifact: false\n\n      - name: Finalize CodeQL SAST Analysis\n        uses: codebeltnet/codeql-scan-finalize@v1\n\n  deploy:\n    name: 🚀 Deploy v${{ needs.build.outputs.version }}\n    runs-on: ubuntu-22.04\n    needs: [build,pack,test,sonarcloud,codecov,codeql]\n    environment: Production\n    steps:\n      - uses: codebeltnet/nuget-push@v1\n        with:\n          token: ${{ secrets.NUGET_TOKEN }}\n          configuration: ${{ inputs.configuration == '' \u0026\u0026 'Release' || inputs.configuration }}\n\n```\n\n## Contributing to Git Checkout\n\nContributions are welcome! \nFeel free to submit issues, feature requests, or pull requests to help improve this action.\n\n### License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n### Other Actions\n\n:bookmark: [Analyze with Codecov](https://github.com/codebeltnet/codecov-scan)\\\n:bookmark: [Analyze with CodeQL](https://github.com/codebeltnet/codeql-scan)\\\n:bookmark: [Finalyze with CodeQL](https://github.com/codebeltnet/codeql-scan-finalize)\\\n:bookmark: [Docker Compose](https://github.com/codebeltnet/docker-compose)\\\n:bookmark: [.NET Build](https://github.com/codebeltnet/dotnet-build)\\\n:bookmark: [.NET Pack](https://github.com/codebeltnet/dotnet-pack)\\\n:bookmark: [.NET Restore](https://github.com/codebeltnet/dotnet-restore)\\\n:bookmark: [.NET Test](https://github.com/codebeltnet/dotnet-test)\\\n:bookmark: [Install .NET SDK](https://github.com/codebeltnet/install-dotnet)\\\n:bookmark: [Install .NET Tool - MinVer](https://github.com/codebeltnet/dotnet-tool-install-minver)\\\n:bookmark: [Install .NET Tool - Report Generator](https://github.com/codebeltnet/dotnet-tool-install-reportgenerator)\\\n:bookmark: [Install .NET Tool - Sonar Scanner](https://github.com/codebeltnet/dotnet-tool-install-sonarscanner)\\\n:bookmark: [GCP Download File](https://github.com/codebeltnet/gcp-download-file)\\\n:bookmark: [Git Checkout](https://github.com/codebeltnet/git-checkout)\\\n:bookmark: [MinVer Calculate](https://github.com/codebeltnet/minver-calculate)\\\n:bookmark: [NuGet Push](https://github.com/codebeltnet/nuget-push)\\\n:bookmark: [Shell Globbing](https://github.com/codebeltnet/shell-globbing)\\\n:bookmark: [Analyze with SonarCloud](https://github.com/codebeltnet/sonarcloud-scan)\\\n:bookmark: [Finalyze with SonarCloud](https://github.com/codebeltnet/sonarcloud-scan-finalize)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebeltnet%2Fgit-checkout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebeltnet%2Fgit-checkout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebeltnet%2Fgit-checkout/lists"}