Skip to content

Commit 1c1582d

Browse files
authored
Skip release attestation for private repo
Skips GitHub artifact attestation on private repositories and documents the limitation.
1 parent f45e519 commit 1c1582d

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
dist/sbom.spdx.json
7979
8080
- name: 生成 build provenance
81+
if: ${{ !github.event.repository.private }}
8182
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
8283
with:
8384
subject-path: |

docs/SUPPLY_CHAIN_SECURITY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
- Dependency Review 在 public repo 可以直接使用;private repo 通常需要 GitHub Advanced Security 或对应的代码安全能力。
2424
- OSV 和 SBOM 的效果依赖仓库里存在可识别的依赖清单或 lockfile。
2525
- `scripts/release-package.sh` 当前会产出 Chrome extension zip,并把它纳入
26-
release provenance;后续新增 native host 二进制发布时,也要把对应制品纳入
27-
同一套 attestation。
26+
release provenance;user-owned private repository 不支持 GitHub artifact
27+
attestation,release workflow 会在 private repo 下跳过 provenance。
28+
后续新增 native host 二进制发布时,也要把对应制品纳入同一套 attestation。
2829
- OpenSSF Scorecard 默认不启用,因为新模板仓库还没有真实分支保护、release 历史和 SAST 姿态可以评分;等仓库规则配置完成后再按需加回。
2930

3031
## 项目落地后建议继续做的事

docs/histories/2026-05/20260508-2105-chrome-web-store-release.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
- **[CI Green]**: Adjusted Markdown lint for accumulated history docs, skipped
3434
Dependency Review on private repositories that do not support it, and bumped
3535
Go/Electron versions away from OSV-reported vulnerable baselines.
36+
- **[Private Release]**: Skipped GitHub artifact attestation for user-owned
37+
private repositories, where GitHub does not expose that feature.
3638

3739
### Design Intent
3840

0 commit comments

Comments
 (0)