Don't override REGISTRY_AUTH_FILE if already set
Some checks failed
CI checks / Run ESLint (push) Has been cancelled
CI checks / Check Distribution (push) Has been cancelled
CI checks / Check Input and Output enums (push) Has been cancelled
Test Login and Pull / Log in and pull image with Podman (push) Has been cancelled
Test Login and Pull / Log in and pull image with Buildah (push) Has been cancelled
Test Login and Pull / Log in and pull image with Docker (push) Has been cancelled

This commit is contained in:
ver4a 2025-04-28 14:28:08 +02:00
parent 4934294ad0
commit 194c202d60
3 changed files with 5 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -70,6 +70,9 @@ async function run(): Promise<void> {
if (authFilePath) {
podmanAuthFilePath = authFilePath;
}
else if (process.env.REGISTRY_AUTH_FILE) {
podmanAuthFilePath = process.env.REGISTRY_AUTH_FILE;
}
else {
// process.getuid might be undefined
let authFileDir = path.join("/", "tmp", `podman-run-${process.getuid ? process.getuid() : null}`);