Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Inaccurate install instructions in the README, not possible to run `gh attestation` unauthenticated

未关闭 适合新手
#771 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1 小时以内
新手友好度
66/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, github, php
领域
documentation

调研方向

一行安装命令位于 README 的安装部分,因此请从那里开始,找到 gh attestation verify 步骤。在没有 GITHUB_TOKEN 且没有执行 gh auth login 的情况下运行该命令,以复现故障。完成的标准是:README 在一行命令旁记录了身份验证要求,或提供了可用的免认证途径,并且维护者就采用哪一种达成一致。

由索引模型根据 Issue 内容生成。

描述

documentation

What are you trying to do?
Install pie in a Docker using the oneliner from the README.

What platform, and PIE version are you using?
Not relevant?

Steps to reproduce the issue

curl -fL --output /tmp/pie.phar https://github.com/php/pie/releases/latest/download/pie.phar \
  && gh attestation verify --owner php /tmp/pie.phar \
  && sudo mv /tmp/pie.phar /usr/local/bin/pie \
  && sudo chmod +x /usr/local/bin/pie

What do you expect to happen?
Pie being downloaded, attestation to be verified and then have pie moved to my path and made executable.

What is actually happening
The oneliner fails as gh attestation requires either a valid GITHUB_TOKEN to be present or a successful gh auth login to happen before attempting to install.

Complete logs/output

# curl -fL --output /tmp/pie.phar https://github.com/php/pie/releases/latest/download/pie.phar \
>   && gh attestation verify --owner php /tmp/pie.phar \
>   && sudo mv /tmp/pie.phar /usr/local/bin/pie \
>   && sudo chmod +x /usr/local/bin/pie
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
100  8.52M 100  8.52M   0      0 14.96M      0                              0
To get started with GitHub CLI, please run:  gh auth login
Alternatively, populate the GH_TOKEN environment variable with a GitHub API authentication token.
/ # gh --version
gh version 2.97.0 (2026-09-04)
https://github.com/cli/cli/releases/tag/v2.97.0
主要语言
PHP
星标
2k
派生
75
平均合并
19 小时
30 天内合并 PR
16

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

php/pie 的其他 Issue

查看 php/pie 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。