feat(root): self-contained scheduled iyarc-prune workflow#9126
Open
rashadjnizar wants to merge 1 commit into
Open
feat(root): self-contained scheduled iyarc-prune workflow#9126rashadjnizar wants to merge 1 commit into
rashadjnizar wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ticket: HSM-429
Summary
Configures a scheduled agent to automatically prune stale entries from .iyarc (the improved-yarn-audit exclusion list). This is a self-contained replacement for the earlier nightshift-actions approach, a public repo can't call the private nightshift-actions reusable workflow, so this runs Claude Code directly via Bedrock, reusing the same OIDC + inference role already proven in claude-pr.yml.
Changes:
How it works
Each run the agent walks every .iyarc exclusion, checks whether a compatible patched version exists, and if so bumps the dependency and removes the exclusion. Before opening a PR it runs the release gates — audit-high + check-deps — plus a scoped build/test, and abandons the change if any gate fails. Green runs open one assigned non-draft PR, with commits signed via use_commit_signing. No-op runs are expected and produce no PR.
Testing
The nightshift scheduler dry-run no longer applies. Validated locally instead:
actionlint .github/workflows/iyarc-prune.yml— valid, no errorsact -l— job/trigger plan parses:prune iyarc-prune schedule,workflow_dispatchyarn run audit-high→ 0 vulnerabilitiesyarn check-deps→ passFull agent run (OIDC → Bedrock → commit/PR) can't execute locally; it will be verified post-merge via a manual
workflow_dispatch.