{"id":20329362,"url":"https://github.com/ddev/github-action-setup-ddev","last_synced_at":"2026-03-10T14:34:25.337Z","repository":{"id":148231472,"uuid":"619894681","full_name":"ddev/github-action-setup-ddev","owner":"ddev","description":"Set up your GitHub Actions workflow with DDEV","archived":false,"fork":false,"pushed_at":"2025-11-04T12:32:38.000Z","size":20938,"stargazers_count":44,"open_issues_count":6,"forks_count":14,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-11-04T13:22:11.647Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddev.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":".github/CODEOWNERS","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},"funding":{"github":["ddev"],"custom":["https://www.paypal.com/donate/?hosted_button_id=MCNCSZHC7LHSQ","https://ddev.com/support-ddev/"]}},"created_at":"2023-03-27T16:13:20.000Z","updated_at":"2025-10-30T01:27:40.000Z","dependencies_parsed_at":"2024-05-02T08:49:04.612Z","dependency_job_id":"d2fe1329-b993-4f4e-b6e2-be483b336b41","html_url":"https://github.com/ddev/github-action-setup-ddev","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/ddev/github-action-setup-ddev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fgithub-action-setup-ddev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fgithub-action-setup-ddev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fgithub-action-setup-ddev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fgithub-action-setup-ddev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddev","download_url":"https://codeload.github.com/ddev/github-action-setup-ddev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fgithub-action-setup-ddev/sbom","scorecard":{"id":330194,"data":{"date":"2025-08-11","repo":{"name":"github.com/ddev/github-action-setup-ddev","commit":"efcd93411e4650ed2660efcf8feefff8ef63025e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":5,"reason":"Found 8/16 approved changesets -- score normalized to 5","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/dependabot.yml:11","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/update-main-version.yml:26","Warn: no topLevel permission defined: .github/workflows/dependabot.yml:1","Warn: no topLevel permission defined: .github/workflows/main.yml:1","Warn: no topLevel permission defined: .github/workflows/update-main-version.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependabot.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ddev/github-action-setup-ddev/dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependabot.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ddev/github-action-setup-ddev/dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/ddev/github-action-setup-ddev/dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/ddev/github-action-setup-ddev/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-main-version.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/ddev/github-action-setup-ddev/update-main-version.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/dependabot.yml:24","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Info: codeowner review is required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 2 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T03:22:56.375Z","repository_id":148231472,"created_at":"2025-08-18T03:22:56.375Z","updated_at":"2025-08-18T03:22:56.375Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30337302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"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":"2024-11-14T20:10:22.169Z","updated_at":"2026-03-10T14:34:25.329Z","avatar_url":"https://github.com/ddev.png","language":null,"funding_links":["https://github.com/sponsors/ddev","https://www.paypal.com/donate/?hosted_button_id=MCNCSZHC7LHSQ","https://ddev.com/support-ddev/"],"categories":[],"sub_categories":[],"readme":"[![marketplace](https://img.shields.io/badge/GitHub-Marketplace-2496ED?logo=github\u0026logoColor=white)](https://github.com/marketplace/actions/setup-ddev-in-github-workflows)\n[![tests](https://github.com/ddev/github-action-setup-ddev/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/ddev/github-action-setup-ddev/actions/workflows/main.yml?query=branch%3Amain)\n[![last commit](https://img.shields.io/github/last-commit/ddev/github-action-setup-ddev)](https://github.com/ddev/github-action-setup-ddev/commits)\n[![release](https://img.shields.io/github/v/release/ddev/github-action-setup-ddev)](https://github.com/ddev/github-action-setup-ddev/releases/latest)\n\n# Setup and start DDEV action\n\nThis **GitHub action** starts [DDEV](https://github.com/ddev/ddev/) with your project's configuration from the directory `.ddev`.\n\nThe idea is to reuse the same environment that you are maintaining for development anyways for automated acceptance testing, thus saving on maintaining a separate CI-configuration.\n\nAny additional services that you might have configured will be started and any post-start hooks etc. will be run.\n\n## Example GitHub workflow\n\n```yaml\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v5\n      - name: Setup DDEV\n        uses: ddev/github-action-setup-ddev@v1\n\n      # example: composer install\n      - run: ddev composer install\n\n      # example: populate database\n      - run: ddev import-db --file=data/db.sql.gz\n\n      # ... and so on. For example:\n      - run: ddev exec bin/myAcceptanceTests.sh\n      - run: ddev exec make tests\n      - run: ddev composer ci:tests\n      - run: ddev composer ci:tests:acceptance:${{ matrix.browser }}\n      - run: ddev yarn --frozen-lockfile --no-progress --non-interactive \u0026\u0026 ddev yarn mocha-tests\n      - run: ddev npm ci \u0026\u0026 ddev npm run mocha-tests\n      - run: test 'test for expected output' = \"$(curl --silent https://my-ddev-project.ddev.site)\"\n\n      # use different PHP version in a test matrix\n      - run: |\n          sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml\n          ddev start\n```\n\n## Options\n\n### ddevDir\n\nPath to your DDEV project. This path needs to contain the `.ddev/` directory.\n\ndefault: `.` (root directory)\n\n```yaml\n      - name: Setup DDEV\n        uses: ddev/github-action-setup-ddev@v1\n        with:\n          ddevDir: \".devbox\"\n      - name: 'You need to switch to that directory to use the `ddev` command'\n        run: ddev composer install\n        working-directory: .devbox\n```\n\n### autostart\n\nStarts your DDEV project immediately.\n\ndefault: `true`\n\n```yaml\n      - uses: ddev/github-action-setup-ddev@v1\n        with:\n          autostart: false\n```\n\n### version\n\nInstall a specific ddev version. The version must be available in ddev's apt repository.\n\ndefault: `latest`\n\n```yaml\n      - uses: ddev/github-action-setup-ddev@v1\n        with:\n          version: 1.24.8\n```\n\n### installScriptUrl\n\nURL to the DDEV installation script. This allows you to specify a custom or alternative source for the DDEV installation script.\n\ndefault: `https://ddev.com/install.sh`\n\n```yaml\n      - uses: ddev/github-action-setup-ddev@v1\n        with:\n          installScriptUrl: \"https://raw.githubusercontent.com/ddev/ddev/v1.22.4/scripts/install_ddev.sh\"\n```\n\nThis option is useful for:\n- Using a specific version of the installation script from a tagged release\n- Testing with a development version from a specific branch\n- Using a forked or modified version of the installation script\n- Working with air-gapped environments that require local script hosting\n\nExample with custom script source:\n\n```yaml\n      - name: Setup DDEV with custom installation script\n        uses: ddev/github-action-setup-ddev@v1\n        with:\n          installScriptUrl: \"https://my-company.com/scripts/custom_ddev_install.sh\"\n          version: \"v1.24.8\"\n```\n\n## Common recipes\n\n### SSH keys\n\nIf your workflow needs to reach remote destinations that require private SSH keys,\nwe recommend adding SSH keys that you have entered as [GitHub \"secrets\"](https://docs.github.com/en/actions/security-guides/encrypted-secrets):\n\n```yaml\n      - name: Setup SSH keys\n        run: |\n          mkdir -p .ddev/homeadditions/.ssh\n          echo \"${{ secrets.MY_KEY }}\" \u003e .ddev/homeadditions/.ssh/id_rsa\n          chmod 700 .ddev/homeadditions/.ssh\n          chmod 600 .ddev/homeadditions/.ssh/id_rsa\n      - name 'optional: set up host keys'\n        run: |\n          echo \"${{ secrets.MY_KNOWN_HOSTS }}\" \u003e .ddev/homeadditions/.ssh/known_hosts\n      - name: Setup DDEV\n        uses: ddev/github-action-setup-ddev@v1\n```\n\n## Contact\n\nFor **bugs** and **feature requests** use the [GitHub bug tracker](https://github.com/ddev/github-action-setup-ddev/issues).\n\nPull requests are very welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fgithub-action-setup-ddev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddev%2Fgithub-action-setup-ddev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fgithub-action-setup-ddev/lists"}