The public repository for shared workflows for projects under the linuxfoundation/ GH org.
-
license-header-check.ymlReusable workflow for checking license headers in source code files.
-
lfx-opentofu-{plan,apply,check,plan-apply}Reusable workflows wrapping https://github.com/dflook/terraform-github-actions OpenTofu actions with extra setup glue for AWS login and secrets handling.
The standalone
planandapplyworkflows are intended for a plan-on-PR/merge-on-apply workflow,checkis for reoccurring drift detection jobs, andplan-applyis for manual triggers outside of the PR process (e.g. for retrying or resolving drift).Most inputs are shared across all four workflows:
Input Type Required Default Description environmentstring yes Name of the GHA environment to use opentofu_workspacestring (environment input) Name of the OpenTofu workspace to use opentofu_variablesstring Variables to pass to OpenTofu opentofu_backend_configstring Backend configuration for OpenTofu opentofu_plan_labelstring (environment input) Label for the OpenTofu plan output in PR comment opentofu_var_filestring List of var file paths, one per line opentofu_pathstring .Path to the OpenTofu directory oidc_role_arnstring yes ARN of the IAM role to assume with OIDC oidc_audiencestring sts.amazonaws.comOIDC audience to authenticate against oidc_regionstring us-east-2Default region for the AWS client envstring Additional environment variables secrets_manager_keysstring List of keys to fetch from AWS Secrets Manager artifact_namestring Name of an artifact to download before running artifact_pathstring Path to download the artifact to pre_run_scriptstring Shell commands passed through as TERRAFORM_PRE_RUNsecrets.env_secretsecret Additional secret environment variables A few inputs only apply to specific workflows:
Input Applies to Type Default Description opentofu_add_github_commentplan,plan-applystring truePost the plan output as a comment on the PR enable_incidentio_alertcheckboolean falseEnable Incident.io alert creation on drift detection incidentio_alert_tokencheckstring Incident.io alert token source (as ENVVAR, /path/in/sm)incidentio_alert_sourcecheckstring Incident.io alert source (as ENVVAR, /path/in/sm)
Copyright The Linux Foundation and each contributor to LFX.
This project’s source code is licensed under the MIT License. A copy of the license is available in LICENSE.
This project’s documentation is licensed under the Creative Commons Attribution 4.0 International License (CC-BY-4.0). A copy of the license is available in LICENSE-docs.