Skip to content

feat(ci): package integrations into GitHub releases - #441

Open
Shubhank-Jonnada wants to merge 3 commits into
masterfrom
feat/440/package-release-pipeline
Open

feat(ci): package integrations into GitHub releases#441
Shubhank-Jonnada wants to merge 3 commits into
masterfrom
feat/440/package-release-pipeline

Conversation

@Shubhank-Jonnada

@Shubhank-Jonnada Shubhank-Jonnada commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Closes #440

Depends on Autohive-AI/autohive-integrations-tooling#62 and the HiveUp 2.5.0 tag created after that PR merges.

Summary

  • add a manually dispatched workflow for selected integrations or all 99 monorepo integrations
  • restrict release creation to the protected default branch
  • package four integrations concurrently with a bounded 240-minute job and publish one GitHub Release per run
  • publish an integrity manifest alongside every ZIP
  • configure Code Analysis and Google Ads as container-backed sources
  • document source identity, rename behavior, validation separation, and deploy-without-publish semantics

Security

  • workflow has only GitHub contents: write; it has no Autohive URL or credential
  • checkout credentials are not persisted
  • the public tooling repository is pinned to immutable tag 2.5.0, so no additional checkout secret is required
  • selection is resolved by HiveUp into strict top-level paths before packaging

Testing

  • workflow YAML and release JSON parsed locally
  • release-plan --selection all resolved 99 integrations
  • real rehearsal packaged Code Analysis (53,679,979 bytes) and Google Ads (41,355,199 bytes), then generated and verified their SHA-256 manifest entries

Setup

Merge the tooling PR, publish immutable tag 2.5.0, then merge this PR. No additional repository token is required.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 25fea78009

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

run-name: Package integrations (${{ inputs.request_id || github.run_id }})

on:
workflow_dispatch:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restrict release packaging to the default branch

With this unguarded workflow_dispatch trigger, a write user can manually run the workflow from a non-default branch; GitHub's manual-run docs explicitly include a Branch dropdown for these runs. The job then checks out that selected ref and creates a release at its $GITHUB_SHA while using --skip-validate, so it can publish deployable packages from unmerged code instead of the already-merged/default-branch integrations described in CONTRIBUTING.md:316-319. Add a job/step guard for github.ref_name == github.event.repository.default_branch (or check out the default branch explicitly) before packaging and releasing.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. The release job now runs only when the selected ref is the repository default branch, so branch-selected dispatches stop before checkout, packaging, or release creation. The workflow guard was validated locally.

@Shubhank-Jonnada

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: e52750cbd3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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.

ci: publish packaged integrations as pull-based deployment releases

1 participant