mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
bugfix(auth): Update authentication logic in settings.xml, unit tests, and documentation examples
To address this issue, we've implemented substantial enhancements to the logic within settings.xml to improve the management of authentication data. Furthermore, we've updated the unit tests to align with these modifications, guaranteeing thorough validation. The documentation and examples have been meticulously revised to offer more straightforward instructions on how to effectively configure and employ this updated methodology.
This commit is contained in:
parent
9704b39bf2
commit
0185e0f794
5 changed files with 66 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
import * as path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
import * as io from '@actions/io';
|
||||
import * as path from 'path';
|
||||
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
|
@ -84,8 +84,8 @@ export function generate(
|
|||
server: [
|
||||
{
|
||||
id: id,
|
||||
username: `\${env.${username}}`,
|
||||
password: `\${env.${password}}`
|
||||
username: process.env['username'],
|
||||
password: process.env['password']
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ export function generate(
|
|||
if (gpgPassphrase) {
|
||||
const gpgServer = {
|
||||
id: 'gpg.passphrase',
|
||||
passphrase: `\${env.${gpgPassphrase}}`
|
||||
passphrase: process.env['gpgPassphrase']
|
||||
};
|
||||
xmlObj.settings.servers.server.push(gpgServer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue