DashboardcraftCraft publish_repo 'self' sentinel reso…

Craft publish_repo 'self' sentinel resolves to GITHUB_REPOSITORY at runtime

Category: pattern
Confidence: 1.00
ID: 019fa839-b6b0-7583-be5a-3ad42477b1bb
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 1
Source session: (none)
Created: 2026-06-10 21:07:09
Updated: 2026-07-28 10:16:22

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 2 2026-07-27

Content

The composite action's publish_repo input supports a special sentinel value "self" which resolves to $GITHUB_REPOSITORY at runtime in the bash script of the 'Request publish' step. This allows repos to create publish request issues in themselves rather than in a separate {owner}/publish repo. The resolution happens in bash (not in the GitHub Actions expression) because the expression layer sets PUBLISH_REPO via inputs.publish_repo || format('{0}/publish', github.repository_owner) — the string "self" passes through as-is and gets resolved to the actual repo name in the shell. Useful for personal/small repos where the default GITHUB_TOKEN already has write access to the repo itself.

Move to: