Pin workflow actions to commit SHAs and npm exactly in publish

Đang mở
#117 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, typescript
Lĩnh vực
ci-cd, security

Hướng nghiên cứu

Start with .github/workflows/publish.yml and compare its uses: references and npm install command with the suggested changes; then inspect release.yml, drift-check.yml, ci.yml, pages.yml, stale.yml, and label-sync.yml for the remaining action references. Pin actions to full commit SHAs, select an exact npm version, and apply the listed publish workflow changes. Done when the requested workflow hardening is reflected in those files.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

dependencies severity: low

Summary

Every workflow uses: points at a mutable tag, including in the publish job that holds id-token: write for npm trusted publishing. publish.yml also installs a floating npm version. This is hardening; there is no known exploit.

Where

  • .github/workflows/publish.yml:8-10, .github/workflows/publish.yml:19-27 (actions/checkout@v7 and actions/setup-node@v7 under id-token: write; npm install -g npm@^11.5.1; cache: npm)
  • .github/workflows/release.yml (contents: write, actions: write)
  • .github/workflows/drift-check.yml:18 (a third-party org action @v1.20)
  • every other uses: in ci.yml, pages.yml, stale.yml and label-sync.yml

Suggested fix

  • Pin actions to full commit SHAs with a # vX.Y comment, at least in publish.yml and release.yml. Dependabot already watches github-actions and will bump the SHAs.
  • Pin npm to an exact version in publish.yml.
  • Drop cache: npm from the publish job, so a poisoned cache cannot reach the token-minting job.
  • Consider npm ci --ignore-scripts before the build in publish.

Getting started

  • Relevant files: .github/workflows/*.yml

Filed by repo-audit/full-audit at e836036. Severity: low. Effort: S. audit-key: dependencies|.github/workflows/publish.yml|uses

Ngôn ngữ chính
TypeScript
Star
0
Fork
6
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/godot-correctness-mcp

Tất cả issue của TMHSDigital/godot-correctness-mcp

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.