{"id":17028506,"url":"https://github.com/svierk/sfdx-create-scratch-org","last_synced_at":"2025-07-20T06:04:28.599Z","repository":{"id":229577425,"uuid":"777077952","full_name":"svierk/sfdx-create-scratch-org","owner":"svierk","description":"🌩️ Github composite action for creating Salesforce scratch orgs","archived":false,"fork":false,"pushed_at":"2024-03-25T10:33:56.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T19:47:29.405Z","etag":null,"topics":["composite-action","github-actions","salesforce","sfdx","sfdx-cli"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/sfdx-create-scratch-org","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/svierk.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},"funding":{"github":["svierk"]}},"created_at":"2024-03-25T06:40:18.000Z","updated_at":"2024-12-20T20:26:11.000Z","dependencies_parsed_at":"2024-03-30T20:00:59.480Z","dependency_job_id":null,"html_url":"https://github.com/svierk/sfdx-create-scratch-org","commit_stats":null,"previous_names":["svierk/sfdx-create-scratch-org"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/svierk/sfdx-create-scratch-org","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svierk%2Fsfdx-create-scratch-org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svierk%2Fsfdx-create-scratch-org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svierk%2Fsfdx-create-scratch-org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svierk%2Fsfdx-create-scratch-org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svierk","download_url":"https://codeload.github.com/svierk/sfdx-create-scratch-org/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svierk%2Fsfdx-create-scratch-org/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266076036,"owners_count":23872729,"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":["composite-action","github-actions","salesforce","sfdx","sfdx-cli"],"created_at":"2024-10-14T07:54:48.948Z","updated_at":"2025-07-20T06:04:28.570Z","avatar_url":"https://github.com/svierk.png","language":null,"funding_links":["https://github.com/sponsors/svierk"],"categories":[],"sub_categories":[],"readme":"# 🌩️ SFDX Create Scratch Org\n \nThis repository implements a simple GitHub composite action for creating Salesforce scratch orgs.\n\n## Usage\n\nIn a GitHub workflow, the use of the action after installing the SF CLI and authorizing the respective DevHub Org could look like this:\n\n```\njobs:\n  create-scratch-org:\n    name: Create Scratch Org\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@main\n        with:\n          fetch-depth: 0\n\n      - name: Select Node Version\n        uses: svierk/get-node-version@main\n\n      - name: Install SF CLI\n        uses: svierk/sfdx-cli-setup@main\n\n      - name: Authorize DevHub\n        uses: svierk/sfdx-login@main\n        with:\n          client-id: ${{ secrets.SFDX_CONSUMER_KEY }}\n          jwt-secret-key: ${{ secrets.SFDX_JWT_SECRET_KEY }}\n          username: ${{ secrets.SFDX_USERNAME }}\n          set-default: true\n          set-default-dev-hub: true\n          alias: devhub\n\n      - name: Create Scratch Org\n        uses: svierk/sfdx-create-scratch-org@main\n        with:\n          alias: scratch-${{ github.run_id }}\n          name: ${{ inputs.name }}\n          description: ${{ inputs.description }}\n          admin-email: ${{ inputs.email }}\n          set-default: true\n          definition-file: config/project-scratch-def.json\n          target-dev-hub: devhub\n          duration-days: ${{ inputs.lifespan }}\n          wait: 10\n\n      - name: Package Installation\n        if: ${{ inputs.install-packages }}\n        uses: svierk/sfdx-package-installation@main\n        with:\n          packages: ${{ inputs.packages }}\n          wait: 30\n          publish-wait: 20\n\n      - name: Deploy Metadata\n        if: ${{ inputs.deploy-metadata }}\n        run: sf project deploy start\n\n      - name: Generate Password\n        run: sf org generate password --target-org scratch-${{ github.run_id }}\n```\n\nThe following actions were also used in the example workflow above:\n\n- [Get Node Version](https://github.com/svierk/get-node-version) | Pulls Node.js version to be used from the _package.json_ of the project\n- [SFDX CLI Setup](https://github.com/svierk/sfdx-cli-setup) | Installs the Salesforce CLI and related plugins\n- [SFDX Login](https://github.com/svierk/sfdx-login) | Handles Salesforce login using a JSON web token (JWT)\n- [SFDX Package Installation](https://github.com/svierk/sfdx-package-installation) | Handles Salesforce package installation on target org\n\nOf course, the create scratch org action can be used flexibly and the respective approach can vary.\n\n## References\n\nThe scratch org creation option supported by this GitHub composite action can be found in the Salesforce CLI Command Reference here: \n\n- [org create scratch](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_org_commands_unified.htm#cli_reference_org_create_scratch_unified)\n\nMore details can be found in the related Salesforce DX Developer Guide: [Create Scratch Orgs](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_create.htm)\n\n## Releases\n\nLatest release notes can be found on the [release page](https://github.com/svierk/sfdx-create-scratch-org/releases).\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](https://github.com/svierk/sfdx-create-scratch-org/blob/main/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvierk%2Fsfdx-create-scratch-org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvierk%2Fsfdx-create-scratch-org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvierk%2Fsfdx-create-scratch-org/lists"}