Reusable GitHub Actions workflows for makeitworkcloud repositories.
Call a shared workflow from your repository:
name: OpenTofuon:
pull_request:
branches:
- mainpush:
branches:
- mainpermissions:
contents: readid-token: writepull-requests: writejobs:
opentofu:
uses: makeitworkcloud/shared-workflows/.github/workflows/opentofu.yml@main| Workflow | Description |
|---|---|
opentofu.yml | OpenTofu/Terraform CI/CD with PR validation and an environment-gated apply on every push to main |
Same-repository PRs run tests and a credentialed plan; fork PRs run tests only. A push to main runs tests followed by a fresh apply, which does not reuse the PR plan.
Repository CI runs on ubuntu-24.04. The reusable OpenTofu workflow defaults
to the arc-tf runner, whose pod uses the tfroot-runner image directly. That
image uses Actions Runner 2.336.0, above the 2.327.1 minimum required by
the workflows' Node 24 actions.
See images for container source and included tools.
- Grant
id-token: writein the caller workflow so GitHub OIDC can assume the SOPS KMS role. - Ensure the default
aws-role-to-assumeexists (arn:aws:iam::332355796717:role/github-actions-sops-kms) or pass another role ARN. - Create caller workflow in
.github/workflows/. - Ensure repository has required files (e.g.,
Makefilewith expected targets).