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

未关闭
#267 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
github-actions, go
领域
cli, security

调研方向

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.

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

描述

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.

主要语言
Go
星标
295
派生
21
平均合并
1 天 3 小时
30 天内合并 PR
64

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

github/gh-actions-lock 的其他 Issue

查看 github/gh-actions-lock 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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