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

Abierto
#267 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, go
Área
cli, security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
295
Forks
21
Merge medio
1 d 3 h
PR fusionados (30 d)
64

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-actions-lock

Todos los issues de github/gh-actions-lock

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.