Skip to content

feat(actions): add shared composite actions for org-wide CI - #1

Open
MAHDTech wants to merge 2 commits into
trunkfrom
feat/shared-composite-actions
Open

feat(actions): add shared composite actions for org-wide CI#1
MAHDTech wants to merge 2 commits into
trunkfrom
feat/shared-composite-actions

Conversation

@MAHDTech

Copy link
Copy Markdown
Contributor

Adds three shared composite actions (setup-devenv, app-token, commit-status) that every tf-module repository will consume pinned by SHA — stage 1 of the org-wide CI cleanup.

Stage 2 pilots the migration end-to-end on tf-sleep (all five workflows onto the composites, App token for PR and release creation — which also wakes the never-fired publish-on-release job in opentofu-module.yaml). Stage 3 rolls out to the remaining repos once the pilot is confirmed.

Note: the App-token path needs the CI_APP_ID / CI_APP_PRIVATE_KEY org secrets, which this org does not have yet — they are being added via lz-github actions.yaml. Until they land, the composites fall back to GITHUB_TOKEN (current behaviour).

🤖 Generated with Claude Code

MAHDTech and others added 2 commits August 16, 2026 12:15
Introduce three composite actions consumed by every tf-module repository,
pinned by SHA from their workflows:

- setup-devenv: Install Nix + Cachix + devenv, with an optional GitHub App
  token for the Nix GitHub access token.
- app-token: mint a GitHub App installation token with GITHUB_TOKEN
  fallback, for creating pull requests, tags and releases that must
  trigger downstream workflows (bot PRs otherwise sit in "workflows
  awaiting approval", and releases created with GITHUB_TOKEN never fire
  the publish-on-release job).
- commit-status: report a commit status from a step outcome, replacing
  the per-workflow copy-pasted gh api block.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The app-id input is deprecated in create-github-app-token v3 in favour
of client-id. Rename the composite inputs accordingly
(ci_app_id -> ci_app_client_id, app_id -> app_client_id) and mint with
client-id + CI_APP_CLIENT_ID.

Co-Authored-By: Claude Fable 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.

1 participant