dependency-security-scanning: a scanner in a GitHub Actions workflow is not seen (gate files are a list of its own)
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
- 62/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, typescript
Línea de trabajo
Start with GATE_FILES in src/laws/dependency-scanning/vulnerability-checker/services/vulnerability-checker-analysis.service.ts (lines 88-98) and hasScannerInGate in the same service. Check how the shared CI discovery used by the other CI laws finds .github/workflows/*.yml and whether it can feed this check. Done when the workflow example with npm audit --omit=dev passes, a workflow without a scanner step still fails, and existing package.json and Makefile detections are unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version: 8.0.1 (tag v8.0.1)
Law: dependency-security-scanning (Dependency Security Scanning), "is a dependency scanner wired into the gate": VulnerabilityCheckerAnalysisService.hasScannerInGate
What happens
The law looks for a scanner (npm audit, pip-audit, Snyk, OSV, Dependabot…) in a fixed list of gate files, GATE_FILES (src/laws/dependency-scanning/vulnerability-checker/services/vulnerability-checker-analysis.service.ts:88-98): package.json, pyproject.toml, .pre-commit-config.yaml, Makefile, noxfile.py, tox.ini, bitbucket-pipelines.yml, .gitlab-ci.yml, .github/dependabot.yml|yaml. GitHub Actions workflows (.github/workflows/*.yml|yaml) are not in it, nor are other CI files the tool already discovers elsewhere.
Reproduction
A project whose only gate is a GitHub Actions workflow:
name: ci
on: [push]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm audit --omit=dev
laws.enabled { "Dependency Security Scanning": true }:
1. Dependency Security Scanning [1 violations] (Score: 90/100)
• Security audit configuration missing
What I ruled out
The same npm audit --omit=dev line in package.json scripts or a Makefile is recognised; only the file it is in differs.
Why it matters
GitHub Actions is the most common place for the scanner the law asks for, and after #545 judging the scanner in the gate is what this law does. A project with the scanner wired in is told it has none.
Suggested direction
Read the CI files through the shared CI discovery the other CI laws use (GitHub Actions, GitLab, Bitbucket, Azure Pipelines, CircleCI, Jenkinsfile, Cloud Build), not a list of its own, so a CI system the tool learns about is learned once. Red/green: the workflow above passes; a workflow without a scanner step does not.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 2 h 36 min
- PR fusionados (30 d)
- 168
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Rule-Of-Code/RoC
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Rule-Of-Code/RoC#548 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Rule-Of-Code/RoC#547 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Rule-Of-Code/RoC#506 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Rule-Of-Code/RoC#501 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
Rule-Of-Code/RoC#562 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Rule-Of-Code/RoC
Issues similares
-
bug done
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
neavo/LinguaGacha#1124 ·
Los mantenedores suelen responder en 1 día
-
[fullsend] E2E: backstage-microsoft-auth — catalogQuery missing error handler for network errorsPosiblemente ocupada @fullsend-ai-coder la tomó hoy. Abiertoe2e-failure ready-to-code
Dificultad 2/5 Menos de una hora Aptitud para principiantes 78/100
redhat-developer/rhdh-plugin-export-overlays#4821 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
brylie/mission-island#225 ·
Los mantenedores suelen responder en 1 día
-
status/need-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
google-gemini/gemini-cli#30412 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día