feat(cdk): add github:* resource tagging strategy#85
Merged
Conversation
Apply 9 github:* tags to all stack resources via CDK context values. Tags default to 'none' when not provided, ensuring consistent tag schema across all stacks for cleanup harvesting and CI/CD provenance tracking. Closes #84 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This was referenced May 13, 2026
krokoko
approved these changes
May 13, 2026
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.
Summary
github:*tags to all stack resources viaTags.of(stack).add()inmain.ts-c github:sha=..., etc.) and default to sentinelnoneCloses #84
Tags
gh/gitCLIgithub:sha$GITHUB_SHAgh api /repos/{owner}/{repo}/commits/{ref} --jq .sha/git rev-parse HEADnonegithub:ref$GITHUB_REF_NAMEgh api /repos/{owner}/{repo}/git/ref/heads/{branch} --jq .ref/git branch --show-currentnonegithub:ref-type$GITHUB_REF_TYPEgh api /repos/{owner}/{repo}/git/ref/heads/{branch}→branchor/tags/{tag}→tag/git cat-file -t $(git rev-parse HEAD)nonegithub:actor$GITHUB_ACTORgh api /user --jq .login/git config user.namenonegithub:head-ref$GITHUB_HEAD_REFgh pr view --json headRefName --jq .headRefName/none(only in PR context)nonegithub:run-id$GITHUB_RUN_IDgh run list --limit 1 --json databaseId --jq '.[0].databaseId'/ N/A (CI only)nonegithub:event$GITHUB_EVENT_NAMEgh run view {run-id} --json event --jq .event/ N/A (CI only)nonegithub:repository$GITHUB_REPOSITORYgh repo view --json nameWithOwner --jq .nameWithOwner/git remote get-url originnonegithub:cleantrue(CI always clean)[ -z "$(git status --porcelain)" ] && echo true || echo falsenoneTest plan
cdk/test/stacks/github-tags.test.tsnonewhen no context providednoneagent.test.tstests pass unchanged🤖 Generated with Claude Code