diff --git a/__tests__/auth.test.ts b/__tests__/auth.test.ts
index 2bfdd99a..31b59f7c 100644
--- a/__tests__/auth.test.ts
+++ b/__tests__/auth.test.ts
@@ -23,6 +23,7 @@ process.env['RUNNER_TEMP'] = tempDir;
import * as auth from '../src/auth';
const m2Dir = path.join(__dirname, auth.M2_DIR);
+const gpgHomeDir = auth.GPG_HOME_DIR;
const settingsFile = path.join(m2Dir, auth.SETTINGS_FILE);
const privateKeyFile = path.join(tempDir, auth.PRIVATE_KEY_FILE);
@@ -185,7 +186,7 @@ describe('auth tests', () => {
true
- ${tempDir}
+ ${gpgHomeDir}
diff --git a/src/auth.ts b/src/auth.ts
index 0a647a22..a7762a96 100644
--- a/src/auth.ts
+++ b/src/auth.ts
@@ -93,7 +93,7 @@ export function generate(
activeByDefault: true
},
properties: {
- 'gpg.homedir': TEMP_DIR
+ 'gpg.homedir': GPG_HOME_DIR
}
}
]