Agent skill · software engineering · jeremylongshore
oraclecloud-ci-integration
Configure CI/CD pipelines for OCI with Terraform and GitHub Actions.
Why this skill is useful
Adds executable Terraform scripts and CI patterns specifically tailored for Oracle Cloud Infrastructure that aren't publicly documented.
What it needs
Requires python, terraform installed locally. Requires github account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Oracle Cloud CI Integration Overview Set up GitHub Actions workflows that authenticate to OCI, run Terraform plans, and execute tests against OCI services. The OCI Terraform provider has known bugs — notably ResourcePrincipal forcing the wrong region (#1761) — that require specific workarounds. This skill provides battle-tested CI patterns that avoid those pitfalls. Purpose: Get a working CI pipeline that authenticates to OCI, runs Terraform safely, and tests OCI-dependent code without flaky failures. Prerequisites OCI tenancy with an API signing key configured in ~/.oci/config Terraform >= 1.5 and the OCI provider (oracle/oci) GitHub repository with Actions enabled GitHub Secrets configured: OCIUSEROCID, OCIFINGERPRINT, OCITENANCYOCID, OCIREGION, OCIPRIVATEKEY (PEM contents, base64-encoded) Python 3.8+ with pip install oci for SDK-based tests Instructions Step 1: Configure GitHub Secrets for OCI Auth OCI API key authentication requires five values. Store them as GitHub repository secrets: The remaining secrets come from your ~/.oci/config file: user, fingerprint, tenancy, and region. Step 2: GitHub Actions Workflow with Terraform Create .github/workflows/oci-terraform.yml: Step 3: Terraform Provider Configuration Configure the OCI provider with explicit region to avoid the ResourcePrincipal region bug (#1761): Step 4: OCI CLI Commands in CI For non-Terraform CI tasks, use the OCI CLI directly: Step 5: Python SDK Tests with Mocks Write testable OCI code by mocking the SDK clients: Output Successful completion produces: A GitHub Actions workflow that authenticates to OCI using API key secrets Terraform provider configuration with the explicit region workaround OCI CLI setup steps for non-Terraform CI tasks A test pattern using mocked OCI SDK clients for unit testing Error Handling Error Code Cause Solution ------- ------ ------- ---------- NotAuthenticated 401 Bad API key or wrong fingerprint Verify secrets match ~/.oci/config values exactly NotAuthorizedOrNotFound 4 …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/oraclecloud-ci-integration