dependency-security-scanning: a scanner in a GitHub Actions workflow is not seen (gate files are a list of its own)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 2h 36m
- PR unite (30g)
- 168
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Rule-Of-Code/RoC
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Rule-Of-Code/RoC#548 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Rule-Of-Code/RoC#547 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Rule-Of-Code/RoC#506 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Rule-Of-Code/RoC#501 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
Rule-Of-Code/RoC#562 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Rule-Of-Code/RoC
Issue simili
-
bug done
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
neavo/LinguaGacha#1124 ·
I maintainer di solito rispondono entro 1 giorno
-
[fullsend] E2E: backstage-microsoft-auth — catalogQuery missing error handler for network errorsForse già presa @fullsend-ai-coder l’ha presa oggi. Apertae2e-failure ready-to-code
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 78/100
redhat-developer/rhdh-plugin-export-overlays#4821 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
brylie/mission-island#225 ·
I maintainer di solito rispondono entro 1 giorno
-
status/need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
google-gemini/gemini-cli#30412 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno