`gh actions-lock` hangs with `github/codeql-action`

Đang mở
#267 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 1 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
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go
Lĩnh vực
cli, security

Hướng nghiên cứu

Start by tracing the reverse lookup for a pinned SHA in the gh actions-lock workflow planning path; the issue points to github/codeql-action and the logged comparison request as the failing case. Reproduce with the supplied workflow and observe whether lookup completes or is canceled. Done when the command finishes instead of hanging on that pinned SHA.

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

Mô tả

With the following workflow, gh actions-locks appears stuck:

name: "CodeQL"

on:
  push:
    branches: [ "main" ]

jobs:
  analyze:
    name: Analyze
    runs-on: [depot-ubuntu-24.04]
    permissions:
      actions: read
      contents: read
      security-events: write

    strategy:
      fail-fast: false
      matrix:
        language: ['javascript', 'ruby', 'actions']

    steps:
    - name: Checkout repository
      uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
      with:
        persist-credentials: false

    - name: Initialize CodeQL
      uses: github/codeql-action/init@0daab03d71ff584ef619d027a3fd9146679c5d84 # v3.35.3
      with:
        languages: ${{ matrix.language }}

    - name: Autobuild
      uses: github/codeql-action/autobuild@0daab03d71ff584ef619d027a3fd9146679c5d84 # v3.35.3

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@0daab03d71ff584ef619d027a3fd9146679c5d84 # v3.35.3
      with:
        category: "/language:${{matrix.language}}"
gh actions-lock .github/workflows/codeql.yml
Checking 1 workflow ⡿
  pinning .github/workflows/codeql.yml ⠋ (still working…)

The logs seem to indicate it's stuck identifying the ref belonging to the pinned SHA:

planning .github/workflows/codeql.yml: reverse lookup: github/codeql-action@0daab03d71ff…:
comparing 0daab03d71ff with github/codeql-action branch <random-branch> …/compare/…?per_page=1&page=2: context canceled

I have not waited around long enough to see if it eventually completes.

Ngôn ngữ chính
Go
Star
295
Fork
21
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
64

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 github/gh-actions-lock

Tất cả issue của github/gh-actions-lock

Issue tương tự

Thêm issue về Go

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.