Skip to content

Commit 82038c3

Browse files
committed
Use GITHUB_ACTION_REPOSITORY for default Docker image name
GITHUB_REPOSITORY points to the caller's repository, not the action's own repository. Switch to GITHUB_ACTION_REPOSITORY so the default image correctly resolves to the action's GHCR package.
1 parent 8ab2346 commit 82038c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Start buildcage builder container
33

44
inputs:
55
buildcage_image:
6-
description: "Docker image name (default: ghcr.io/<owner>/<repo>)"
6+
description: "Docker image name (default: ghcr.io/<action-owner>/<action-repo>)"
77
required: false
88
buildcage_version:
99
description: "Image tag"

setup/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function resolveVersion(image) {
4040
}
4141

4242
const buildcageImage = (process.env.INPUT_BUILDCAGE_IMAGE
43-
|| `ghcr.io/${process.env.GITHUB_REPOSITORY}`).toLowerCase();
43+
|| `ghcr.io/${process.env.GITHUB_ACTION_REPOSITORY}`).toLowerCase();
4444
const buildcageVersion = resolveVersion(buildcageImage);
4545

4646
console.log(`buildcage image: ${buildcageImage}:${buildcageVersion}`);

0 commit comments

Comments
 (0)