开发者在 Hacker News 上推出了名为 Loopt 的新工具,旨在允许用户使用 TypeScript、Python、Go 和 Rust 等多种编程语言来定义 GitHub Actions 工作流 1。该工具的核心功能是将用户编写的源代码自动转换为标准的 YAML 配置文件,并输出至 .github/workflows/*.yml 路径,同时支持导入现有的工作流进行编辑和管理 1。为了增强灵活性,Loopt 还通过插件协议允许接入自定义语言 1。
在安装与初始化方面,用户可通过执行 curl -fsSL https://raw.githubusercontent.com/preloopdev/loopt/main/install.sh | sh 命令获取预编译二进制文件,默认安装目录为 ~/.local/bin,目前支持 macOS arm64 和 Linux x86_64 平台 1。使用 loopt init 命令可创建初始工作流模板,其默认配置语言为 TypeScript 1。需要注意的是,生成过程依赖本地环境,要求系统已安装 Node.js 26+、Python 3、Go 或 Cargo/Rust 1。
Loopt 内置了多项安全特性以保障 CI/CD 流程的安全性,包括强制使用只读令牌(contents: read)、固定 actions/checkout 版本以及取消被取代的运行实例 1。该项目采用 MIT 许可证发布 1。
Developer Preloopdev has released Loopt, a new tool that allows users to write GitHub Actions workflows using TypeScript, Python, Go, and Rust 1. The software generates standard YAML configuration files at .github/workflows/*.yml from source code written in these supported languages 1. Additionally, the tool supports extensibility through a plugin protocol that permits integration with custom programming languages 1.
Loopt offers precompiled binaries for macOS arm64 and Linux x86_64 architectures 1. Users can install the tool via a shell command script, which defaults to placing the executable in the ~/.local/bin directory 1. To initiate a workflow, developers can use the loopt init command, which creates an initial setup with TypeScript as the default language 1. Generating workflows requires specific local runtime environments to be installed on the user's machine, such as Node.js 26+, Python 3, Go, or Cargo/Rust 1.
The project is distributed under the MIT license and includes built-in security features to enhance workflow integrity 1. These safeguards involve utilizing a read-only token with contents: read permissions, pinning the version of actions/checkout, and configuring settings to cancel runs that have been superseded 1.
评论
还没有评论,欢迎留下第一条。