Skip to content

Add checksum validation for Wasm SDK downloads #82

Description

@leogdion

Context

Currently downloading Wasm SDKs from Swift.org without checksum validation (line 808-824 in action.yml).

Blocker

Swift.org does not currently publish checksums for Wasm SDK artifact bundles.

Security Benefit

Prevents supply chain attacks via tampered SDK downloads.

Implementation

Add checksum verification before swift sdk install when checksums become available.

Reference

Swift.org download pattern and SDK installation at action.yml:806-824

Current Code Location

# action.yml:808
# TODO: Add checksum validation when Swift.org publishes checksums for Wasm SDKs
SDK_URL="https://download.swift.org/swift-${SWIFT_VERSION}-release/wasm-sdk/swift-${SWIFT_VERSION}-RELEASE/${SDK_NAME}.artifactbundle.tar.gz"

Related

Part of PR review recommendations for #81 (1.5.0 release)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions