Commit fb2e6938 authored by bigdaz's avatar bigdaz Committed by github-actions[bot]
Browse files

[bot] Update dist directory

parent 07190022
Loading
Loading
Loading
Loading
+5 −14
Changes for dist/dependency-submission/main/index.js: 5 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -157632,12 +157632,9 @@ const find = __importStar(__nccwpck_require__(849));
const checksums = __importStar(__nccwpck_require__(50907));
const hash = __importStar(__nccwpck_require__(60079));
const path_1 = __nccwpck_require__(71017);
async function findInvalidWrapperJars(gitRepoRoot, minWrapperCount, allowSnapshots, allowedChecksums, previouslyValidatedChecksums = [], knownValidChecksums = checksums.KNOWN_CHECKSUMS) {
async function findInvalidWrapperJars(gitRepoRoot, allowSnapshots, allowedChecksums, previouslyValidatedChecksums = [], knownValidChecksums = checksums.KNOWN_CHECKSUMS) {
    const wrapperJars = await find.findWrapperJars(gitRepoRoot);
    const result = new ValidationResult([], []);
    if (wrapperJars.length < minWrapperCount) {
        result.errors.push(`Expected to find at least ${minWrapperCount} Gradle Wrapper JARs but got only ${wrapperJars.length}`);
    }
    if (wrapperJars.length > 0) {
        const notYetValidatedWrappers = [];
        for (const wrapperJar of wrapperJars) {
@@ -157670,23 +157667,17 @@ exports.findInvalidWrapperJars = findInvalidWrapperJars;
class ValidationResult {
    constructor(valid, invalid) {
        this.fetchedChecksums = false;
        this.errors = [];
        this.valid = valid;
        this.invalid = invalid;
    }
    isValid() {
        return this.invalid.length === 0 && this.errors.length === 0;
        return this.invalid.length === 0;
    }
    toDisplayString() {
        let displayString = '';
        if (this.invalid.length > 0) {
            displayString += `✗ Found unknown Gradle Wrapper JAR files:\n${ValidationResult.toDisplayList(this.invalid)}`;
        }
        if (this.errors.length > 0) {
            if (displayString.length > 0)
                displayString += '\n';
            displayString += `✗ Other validation errors:\n  ${this.errors.join(`\n  `)}`;
        }
        if (this.valid.length > 0) {
            if (displayString.length > 0)
                displayString += '\n';
@@ -157754,16 +157745,16 @@ async function validateWrappers(config, workspaceRoot, gradleUserHome) {
    const checksumCache = new cache_1.ChecksumCache(gradleUserHome);
    const allowedChecksums = process.env['ALLOWED_GRADLE_WRAPPER_CHECKSUMS']?.split(',') || [];
    const previouslyValidatedChecksums = checksumCache.load();
    const result = await (0, validate_1.findInvalidWrapperJars)(workspaceRoot, 0, config.allowSnapshotWrappers(), allowedChecksums, previouslyValidatedChecksums);
    const result = await (0, validate_1.findInvalidWrapperJars)(workspaceRoot, config.allowSnapshotWrappers(), allowedChecksums, previouslyValidatedChecksums);
    if (result.isValid()) {
        await core.group('All Gradle Wrapper jars are valid', async () => {
            core.info(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`);
            core.debug(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`);
            core.info(result.toDisplayString());
        });
    }
    else {
        core.info(result.toDisplayString());
        throw new errors_1.JobFailure(`Gradle Wrapper Validation Failed!\n  See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`);
        throw new errors_1.JobFailure(`At least one Gradle Wrapper Jar failed validation!\n  See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`);
    }
    checksumCache.save(result.valid.map(wrapper => wrapper.checksum));
}
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+5 −14
Changes for dist/dependency-submission/post/index.js: 5 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -111256,12 +111256,9 @@ const find = __importStar(__nccwpck_require__(849));
const checksums = __importStar(__nccwpck_require__(50907));
const hash = __importStar(__nccwpck_require__(60079));
const path_1 = __nccwpck_require__(71017);
async function findInvalidWrapperJars(gitRepoRoot, minWrapperCount, allowSnapshots, allowedChecksums, previouslyValidatedChecksums = [], knownValidChecksums = checksums.KNOWN_CHECKSUMS) {
async function findInvalidWrapperJars(gitRepoRoot, allowSnapshots, allowedChecksums, previouslyValidatedChecksums = [], knownValidChecksums = checksums.KNOWN_CHECKSUMS) {
    const wrapperJars = await find.findWrapperJars(gitRepoRoot);
    const result = new ValidationResult([], []);
    if (wrapperJars.length < minWrapperCount) {
        result.errors.push(`Expected to find at least ${minWrapperCount} Gradle Wrapper JARs but got only ${wrapperJars.length}`);
    }
    if (wrapperJars.length > 0) {
        const notYetValidatedWrappers = [];
        for (const wrapperJar of wrapperJars) {
@@ -111294,23 +111291,17 @@ exports.findInvalidWrapperJars = findInvalidWrapperJars;
class ValidationResult {
    constructor(valid, invalid) {
        this.fetchedChecksums = false;
        this.errors = [];
        this.valid = valid;
        this.invalid = invalid;
    }
    isValid() {
        return this.invalid.length === 0 && this.errors.length === 0;
        return this.invalid.length === 0;
    }
    toDisplayString() {
        let displayString = '';
        if (this.invalid.length > 0) {
            displayString += `✗ Found unknown Gradle Wrapper JAR files:\n${ValidationResult.toDisplayList(this.invalid)}`;
        }
        if (this.errors.length > 0) {
            if (displayString.length > 0)
                displayString += '\n';
            displayString += `✗ Other validation errors:\n  ${this.errors.join(`\n  `)}`;
        }
        if (this.valid.length > 0) {
            if (displayString.length > 0)
                displayString += '\n';
@@ -111378,16 +111369,16 @@ async function validateWrappers(config, workspaceRoot, gradleUserHome) {
    const checksumCache = new cache_1.ChecksumCache(gradleUserHome);
    const allowedChecksums = process.env['ALLOWED_GRADLE_WRAPPER_CHECKSUMS']?.split(',') || [];
    const previouslyValidatedChecksums = checksumCache.load();
    const result = await (0, validate_1.findInvalidWrapperJars)(workspaceRoot, 0, config.allowSnapshotWrappers(), allowedChecksums, previouslyValidatedChecksums);
    const result = await (0, validate_1.findInvalidWrapperJars)(workspaceRoot, config.allowSnapshotWrappers(), allowedChecksums, previouslyValidatedChecksums);
    if (result.isValid()) {
        await core.group('All Gradle Wrapper jars are valid', async () => {
            core.info(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`);
            core.debug(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`);
            core.info(result.toDisplayString());
        });
    }
    else {
        core.info(result.toDisplayString());
        throw new errors_1.JobFailure(`Gradle Wrapper Validation Failed!\n  See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`);
        throw new errors_1.JobFailure(`At least one Gradle Wrapper Jar failed validation!\n  See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`);
    }
    checksumCache.save(result.valid.map(wrapper => wrapper.checksum));
}
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+5 −14
Changes for dist/setup-gradle/main/index.js: 5 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -157562,12 +157562,9 @@ const find = __importStar(__nccwpck_require__(849));
const checksums = __importStar(__nccwpck_require__(50907));
const hash = __importStar(__nccwpck_require__(60079));
const path_1 = __nccwpck_require__(71017);
async function findInvalidWrapperJars(gitRepoRoot, minWrapperCount, allowSnapshots, allowedChecksums, previouslyValidatedChecksums = [], knownValidChecksums = checksums.KNOWN_CHECKSUMS) {
async function findInvalidWrapperJars(gitRepoRoot, allowSnapshots, allowedChecksums, previouslyValidatedChecksums = [], knownValidChecksums = checksums.KNOWN_CHECKSUMS) {
    const wrapperJars = await find.findWrapperJars(gitRepoRoot);
    const result = new ValidationResult([], []);
    if (wrapperJars.length < minWrapperCount) {
        result.errors.push(`Expected to find at least ${minWrapperCount} Gradle Wrapper JARs but got only ${wrapperJars.length}`);
    }
    if (wrapperJars.length > 0) {
        const notYetValidatedWrappers = [];
        for (const wrapperJar of wrapperJars) {
@@ -157600,23 +157597,17 @@ exports.findInvalidWrapperJars = findInvalidWrapperJars;
class ValidationResult {
    constructor(valid, invalid) {
        this.fetchedChecksums = false;
        this.errors = [];
        this.valid = valid;
        this.invalid = invalid;
    }
    isValid() {
        return this.invalid.length === 0 && this.errors.length === 0;
        return this.invalid.length === 0;
    }
    toDisplayString() {
        let displayString = '';
        if (this.invalid.length > 0) {
            displayString += `✗ Found unknown Gradle Wrapper JAR files:\n${ValidationResult.toDisplayList(this.invalid)}`;
        }
        if (this.errors.length > 0) {
            if (displayString.length > 0)
                displayString += '\n';
            displayString += `✗ Other validation errors:\n  ${this.errors.join(`\n  `)}`;
        }
        if (this.valid.length > 0) {
            if (displayString.length > 0)
                displayString += '\n';
@@ -157684,16 +157675,16 @@ async function validateWrappers(config, workspaceRoot, gradleUserHome) {
    const checksumCache = new cache_1.ChecksumCache(gradleUserHome);
    const allowedChecksums = process.env['ALLOWED_GRADLE_WRAPPER_CHECKSUMS']?.split(',') || [];
    const previouslyValidatedChecksums = checksumCache.load();
    const result = await (0, validate_1.findInvalidWrapperJars)(workspaceRoot, 0, config.allowSnapshotWrappers(), allowedChecksums, previouslyValidatedChecksums);
    const result = await (0, validate_1.findInvalidWrapperJars)(workspaceRoot, config.allowSnapshotWrappers(), allowedChecksums, previouslyValidatedChecksums);
    if (result.isValid()) {
        await core.group('All Gradle Wrapper jars are valid', async () => {
            core.info(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`);
            core.debug(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`);
            core.info(result.toDisplayString());
        });
    }
    else {
        core.info(result.toDisplayString());
        throw new errors_1.JobFailure(`Gradle Wrapper Validation Failed!\n  See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`);
        throw new errors_1.JobFailure(`At least one Gradle Wrapper Jar failed validation!\n  See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`);
    }
    checksumCache.save(result.valid.map(wrapper => wrapper.checksum));
}
Loading