-
Notifications
You must be signed in to change notification settings - Fork 0
Integrate Rabbit lifecycle resolution #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fqjony
wants to merge
8
commits into
production
Choose a base branch
from
lifecycle-action-integration
base: production
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
01f086b
Integrate rabbit lifecycle resolution
fqjony 94c1ca6
Remove internal lifecycle protection policy
fqjony 1279f2c
Repair repo validation context
fqjony 34edfb3
Absorb Rabbit lifecycle resolution
fqjony e77f3ce
Verify pinned yq downloads
fqjony 5d77b5f
Consolidate compatible action runtime updates
fqjony 18d1b4d
Update checkout action runtime
fqjony 80bc8e8
Move cloud authentication to caller workflow
fqjony File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Local script defaults for direct merge testing. | ||
| # The composite action normally receives these values from action inputs and | ||
| # udx/rabbit-lifecycle outputs. | ||
|
|
||
| INPUT_SOURCE_DIR=.rabbit | ||
| INPUT_ENV_NAME=development | ||
| INPUT_LIFECYCLE=development | ||
| INPUT_IS_PROTECTED=false | ||
| INPUT_RESOLUTION_REASON=local-example | ||
| INPUT_OUTPUT_FORMAT=yaml | ||
| INPUT_RECURSIVE=true | ||
| INPUT_FILE_PATTERNS=*.yml,*.yaml | ||
| INPUT_EXCLUDE=**/merged*.yml,**/merged*.yaml | ||
| INPUT_DEBUG=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: github-actions | ||
| directory: "/" | ||
| schedule: | ||
| interval: weekly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: ci | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - production | ||
| - lifecycle-action-integration | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| validate: | ||
| name: validate action contract | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install pinned yq | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| version="v4.44.3" | ||
| sha256="a2c097180dd884a8d50c956ee16a9cec070f30a7947cf4ebf87d5f36213e9ed7" | ||
| install_dir="${RUNNER_TEMP}/rabbit-action-bin" | ||
| mkdir -p "$install_dir" | ||
| curl -fsSL "https://github.com/mikefarah/yq/releases/download/${version}/yq_linux_amd64" -o "$install_dir/yq" | ||
| printf '%s %s\n' "$sha256" "$install_dir/yq" | sha256sum --check --status | ||
| chmod +x "$install_dir/yq" | ||
| echo "$install_dir" >> "$GITHUB_PATH" | ||
|
|
||
| - name: Run validation | ||
| shell: bash | ||
| run: make test | ||
|
|
||
| - name: Refresh repo context | ||
| shell: bash | ||
| run: npx -y @udx/dev-kit@0.12.0 repo | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Rabbit Context | ||
|
|
||
| This directory keeps Rabbit-facing repo context and generated `dev.kit` evidence. | ||
|
|
||
| - `context.yaml` is generated by `dev.kit repo`; do not edit it manually. | ||
| - Keep human-authored Rabbit CI notes, delivery entry points, and repo-specific workflow guidance in this README. | ||
| - After changing repo docs, manifests, scripts, or workflows, run `dev.kit repo` to refresh generated context. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # Generated by dev.kit repo — do not edit manually. | ||
| # Run `dev.kit repo` to refresh. | ||
| kind: repoContext | ||
| version: udx.dev/dev.kit/v1 | ||
| generator: | ||
| tool: dev.kit | ||
| repo: https://github.com/udx/dev.kit | ||
| version: 0.20.1 | ||
| generated_at: 2026-07-29T14:41:16Z | ||
| sources: | ||
| homepage: https://udx.dev/kit | ||
| repository: https://github.com/udx/dev.kit | ||
| package: https://www.npmjs.com/package/@udx/dev-kit | ||
| installation: https://github.com/udx/dev.kit/blob/latest/docs/installation.md | ||
|
|
||
| repo: | ||
| name: github-rabbit-action | ||
| archetype: manifest-repo | ||
|
|
||
| # Refs — Direct-read files and paths that define the repo contract. | ||
| # Note: Include only files or directories a repo consumer should read before code exploration. | ||
| # Note: Prefer README, focused docs, workflows, manifests, and explicit operational files. | ||
| # Note: Exclude broad implementation directories unless they are the contract themselves. | ||
|
|
||
| refs: | ||
| - ./README.md | ||
| - ./Makefile | ||
| - ./docs/configuration.md | ||
| - ./docs/validation.md | ||
| - ./src/configs/lifecycle-policy.yaml | ||
| - ./action.yml | ||
| - ./.github/workflows | ||
| - ./docs | ||
|
|
||
| # Commands — Canonical repo entrypoints detected from strong repo signals. | ||
| # Note: Prefer declared make targets and package scripts before regex matches in docs. | ||
| # Note: Emit only commands that can be traced to a concrete source. | ||
| # Note: Record the source path so the command can be reviewed and corrected. | ||
|
|
||
| commands: | ||
| verify: | ||
| run: make test | ||
| source: Makefile | ||
|
|
||
| # Dependencies — Meaningful dependency-repo contracts such as reusable workflows, images, or versioned manifests this repo relies on. | ||
| # Note: Capture execution-shaping behavior defined outside the current checkout. | ||
| # Note: Avoid promoting standard package inventory or ordinary GitHub action refs into top-level context. | ||
| # Note: Normalize same-org versioned refs into repo slugs when possible. | ||
|
|
||
| dependencies: | ||
| - repo: udx/rabbit-infra-config | ||
| kind: manifest contract (v1) | ||
| resolved: false | ||
| declared_as: udx.dev/rabbit-infra-config/v1 | ||
| used_by: | ||
| - src/configs/lifecycle-policy.yaml | ||
|
|
||
| # Manifests — YAML files that define repo-specific workflow, deploy, or contract behavior. | ||
| # Note: Include custom config/manifests that materially shape repo behavior or contract understanding. | ||
| # Note: Do not include workflow YAML only because it lives under .github/workflows. | ||
| # Note: Promote workflow files only when they declare reusable workflow refs or other repo-specific execution contracts. | ||
| # Note: Prefer structured kind and description metadata from the manifest itself. | ||
| # Note: Include hidden or nested contract dirs when they contain repo-owned manifests with meaningful metadata. | ||
|
|
||
| manifests: | ||
| - path: src/configs/lifecycle-policy.yaml | ||
| kind: rabbitConfigLayout | ||
| declared_as: udx.dev/rabbit-infra-config/v1 | ||
| source_repo: udx/rabbit-infra-config | ||
| used_by: | ||
| - bin/lib/config.sh | ||
| - docs/configuration.md | ||
| evidence: | ||
| - version: udx.dev/rabbit-infra-config/v1 | ||
| - path reference: bin/lib/config.sh | ||
| - path reference: docs/configuration.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| .PHONY: test validate-shell validate-action validate-workflow | ||
|
|
||
| test: validate-shell validate-action validate-workflow | ||
| tests/run-merge-tests.sh | ||
|
|
||
| validate-shell: | ||
| bash -n \ | ||
| bin/merge-configs.sh \ | ||
| bin/resolve-lifecycle.sh \ | ||
| bin/lib/config.sh \ | ||
| bin/lib/github.sh \ | ||
| bin/lib/lifecycle.sh \ | ||
| bin/lib/validation.sh \ | ||
| bin/lib/environment.sh \ | ||
| tests/run-merge-tests.sh | ||
|
|
||
| validate-action: | ||
| yq eval '.' action.yml >/dev/null | ||
|
|
||
| validate-workflow: | ||
| yq eval '.' .github/workflows/ci.yml >/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.