Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 2, 2025

Migrates CI/CD from Travis CI to GitHub Actions using ddev/github-action-setup-ddev. Removes all Travis dependencies with no backward compatibility layer.

Workflows

  • lint.yml - PhpStan, PHPCS, shellcheck on PRs and main
  • test.yml - Functional tests on PRs and non-main branches
  • deploy-qa.yml - Auto-deploy main → Pantheon QA
  • deploy-test.yml - Deploy tags → Pantheon TEST
  • deploy-live.yml - Deploy *live tags → Pantheon LIVE

Key Changes

  • Removed .travis.yml, .travis.template.yml, travis-key.enc
  • Renamed travis-keydeploy-key throughout codebase
  • Updated ci-scripts/prepare_deploy.sh to use GITHUB_WORKSPACE and GITHUB_COMMIT_MESSAGE
  • Modified robo-components/DeploymentTrait.php to generate OpenSSL-encrypted deploy keys for GitHub Actions
  • Added explicit workflow permissions (contents:read, issues:write, pull-requests:write)
  • Fixed commit message injection vulnerability via environment variables

Migration Requirements

Projects need these GitHub secrets:

  • PANTHEON_GIT_URL - from terminus connection:info
  • TERMINUS_TOKEN - Pantheon machine token
  • ENCRYPTED_KEY, ENCRYPTED_IV - from ddev robo deploy:config-autodeploy
  • ROLLBAR_SERVER_TOKEN - optional

Deploy key setup:

ddev robo deploy:config-autodeploy <terminus_token> <github_token>
# Add deploy-key.pub to Pantheon user SSH keys
# Commit deploy-key.enc to repository

Security

  • Workflow permissions follow least-privilege principle
  • Commit messages sanitized via env vars to prevent injection
  • CodeQL passing with 0 alerts

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com//advisories
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Replace Travis CI with GH actions</issue_title>
<issue_description>We can use https://github.com/ddev/github-action-setup-ddev </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 8 commits December 2, 2025 19:15
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
Copilot AI changed the title [WIP] Replace Travis CI with GitHub Actions Replace Travis CI with GitHub Actions Dec 2, 2025
Copilot AI requested a review from amitaibu December 2, 2025 19:37
AronNovak and others added 5 commits December 5, 2025 14:08
- Replace manual curl GitHub API calls with gh CLI commands in DeploymentTrait
  - gh pr view for fetching PR data
  - gh repo view for checking repo visibility
  - gh issue comment for posting comments
- Remove unused docker_mirror_url parameter from BootstrapTrait
- Remove unused $github_token variable (gh CLI uses GITHUB_TOKEN env var automatically)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
AronNovak and others added 8 commits December 13, 2025 07:08
Create unified ci.yml workflow consolidating all CI/CD jobs.
Rename deploy-key to pantheon-key for clarity.
Fix TRAVIS_TAG references in check_live_deploy.sh.

Changes:
- Create .github/workflows/ci.yml with unified CI/CD pipeline
- Update ci-scripts/check_live_deploy.sh: TRAVIS_TAG → GITHUB_REF_NAME
- Update ci-scripts/prepare_deploy.sh: deploy-key → pantheon-key
- Update robo-components/DeploymentTrait.php: excludes and deployment comment
- Update .gitignore: add pantheon-key references

Based on jep-cjil PRs #10 and #11.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Travis CI with GH actions [2h]

3 participants