The SourceCraft UI also supports copying and downloading raw files without having to clone the repository.
Getting a link to the original raw file from a repository
Raw files are repository source files without HTML rendering or the SourceCraft interface, available at the following links:
For public repositories: https://raw.sourcecraft.tech/raw/<organization_slug>/<repository_slug>/<commit_hash>/<file_name>
For private and internal repositories: https://raw.sourcecraft.tech/raw/<organization_slug>/<repository_slug>/<commit_hash>/<file_name>?token=<short_lived_token>
Links to raw files are convenient to use in automations, e.g., to download and run or simply download a single file without having to clone the entire repository:
# Downloading and running a script directly
curl -s https://raw.sourcecraft.tech/.../install.sh | bash
# Or downloading a file
wget https://raw.sourcecraft.tech/.../config.yaml
You can also use a temporary link to raw files to share a file from a private or internal repository with a user who does not have access to that repository.