-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): bump-sha PR backfill + deploy secrets + gitignore Claude artifacts #86
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
61f7e18
fix(deploy): pass image-digest + ssh/kubeconfig secrets to stg/prd
YiWang24 ea39817
chore: gitignore Claude runtime artifacts + add harness parity plan
YiWang24 98a55b6
fix(bump-sha): backfill missing PR + supersede stale bump branches
YiWang24 133e45b
Merge remote-tracking branch 'origin/main' into fix/deploy-critical-i…
YiWang24 3b756a4
fix(workflows): satisfy audit tests inherited from main
YiWang24 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
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
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
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
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
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 4708
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 3088
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 351
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 2311
🏁 Script executed:
cat -n .github/workflows/reusable-prd.yml | head -150Repository: YiAgent/OpenCI
Length of output: 5696
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 7139
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 82
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 4041
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 2854
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 2210
🏁 Script executed:
Repository: YiAgent/OpenCI
Length of output: 87
🏁 Script executed:
rg 'LAST_RELEASE_IMAGE_DIGEST|LAST_CI_IMAGE_DIGEST' -t shRepository: YiAgent/OpenCI
Length of output: 40
🏁 Script executed:
rg 'LAST_RELEASE_IMAGE_DIGEST|LAST_CI_IMAGE_DIGEST|LAST_STG' --type yaml --type jsonRepository: YiAgent/OpenCI
Length of output: 40
Add non-empty validation for PRD digest inputs; harmonize fallback chain with STG.
Lines 101-103: The
image-digestandstg-image-digestinputs can resolve to empty strings (ifLAST_RELEASE_IMAGE_DIGESTandLAST_STG_IMAGE_DIGESTare unset), which silently bypass digest validation inverify-version-alignsince equal empty strings pass the equality check. Additionally,image-digestat line 101 lacks thevars.LAST_CI_IMAGE_DIGESTfallback that the STG deployment uses at line 68, reducing resilience whenLAST_RELEASE_IMAGE_DIGESTis unavailable.Add the missing fallback to line 101 and validate all three inputs are non-empty before running
prd:Suggested hardening diff
prd: if: >- (github.event_name == 'workflow_run' && github.event.workflow_run.name == 'release' && github.event.workflow_run.conclusion == 'success') - || (github.event_name == 'workflow_dispatch' && inputs.mode == 'prd') + || (github.event_name == 'workflow_dispatch' && inputs.mode == 'prd') + && ((inputs.image-digest || vars.LAST_RELEASE_IMAGE_DIGEST || vars.LAST_CI_IMAGE_DIGEST || '') != '') + && ((inputs.stg-image-digest || vars.LAST_STG_IMAGE_DIGEST || '') != '') + && ((inputs.stg-deploy-time || vars.LAST_STG_DEPLOY_TIME || '') != '') uses: YiAgent/OpenCI/.github/workflows/reusable-prd.yml@cd1b427370ebacb56cc9c0b418d6d8985c9be539 with: app-name: ${{ vars.APP_NAME || github.event.repository.name }} image-name: ${{ vars.IMAGE_NAME || github.event.repository.name }} # The 3 prd-specific safety-gate inputs MUST be set or the # observation-window check is skipped silently. Source order: # 1. workflow_dispatch input (manual override) # 2. vars.* recorded by the upstream stg deploy on success - image-digest: ${{ inputs.image-digest || vars.LAST_RELEASE_IMAGE_DIGEST || '' }} + image-digest: ${{ inputs.image-digest || vars.LAST_RELEASE_IMAGE_DIGEST || vars.LAST_CI_IMAGE_DIGEST || '' }}🤖 Prompt for AI Agents