Skip to content

Use action self-context repository to form the docker image name - #1041

Open
eshattow wants to merge 1 commit into
home-assistant:masterfrom
eshattow:forkfriendly
Open

Use action self-context repository to form the docker image name#1041
eshattow wants to merge 1 commit into
home-assistant:masterfrom
eshattow:forkfriendly

Conversation

@eshattow

@eshattow eshattow commented May 1, 2026

Copy link
Copy Markdown
Contributor

action: use action self-context repository to form the docker image name

github.action_repository is imported to the env as ACTION_REPOSITORY
for a repository fork-friendly docker image reference.
github.repository is used instead when there is no action_repository as
when called from tests as a dotslash self-reference.

@eshattow
eshattow force-pushed the forkfriendly branch 4 times, most recently from 8c121ae to 5b8d7c9 Compare May 4, 2026 08:08
@eshattow

eshattow commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

Found it, I was wondering if this is possible and it is! Will mark "ready" after some testing to verify.

@eshattow
eshattow force-pushed the forkfriendly branch 6 times, most recently from a0e91e3 to 7c11a97 Compare May 4, 2026 16:31
@eshattow
eshattow marked this pull request as ready for review May 6, 2026 23:58
@eshattow

eshattow commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

Confirming this is ready for review. If I understand correctly by observation github.action_repository is available in the env context but not from run context; I don't have any good explanation why this is or where that is written in GitHub Actions documentation though.

@eshattow
eshattow force-pushed the forkfriendly branch 2 times, most recently from 3127163 to ffcfed6 Compare May 7, 2026 10:45
@eshattow

Copy link
Copy Markdown
Contributor Author

rebased to keep up with dependabot

@eshattow

eshattow commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

rebased to master

…name'

github.action_repository is imported to the env as ACTION_REPOSITORY
for a repository fork-friendly docker image reference

github.repository is used instead when there is no action_repository as for
example when called from tests as a dotslash self-reference
@eshattow eshattow changed the title Fork-friendly improvements to actions and workflow Fork-friendly improvements to action Jul 2, 2026
@eshattow

eshattow commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

I've split off one of the commits "workflows: publish: info name specify docker image by github.repository" to its own PR #1082

@eshattow eshattow changed the title Fork-friendly improvements to action Use action self-context repository to form the docker image name Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant