Add a `sarif-out` input for code scanning

Aperta
#21 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, javascript
Ambito
devtools

Direzione di ricerca

Start with src/action.js, src/sarif.js, and test/sarif.test.js to trace how findings are read and how the action handles inputs. Implement the sarif-out flow across the listed files, then run npm test -- test/sarif.test.js. Done means the output validates as SARIF 2.1.0, contains a rule and result for each finding, preserves file paths and lines, and the README documents the upload step.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement wave

Context

Annotations disappear once a pull request is merged. A SARIF file uploaded to GitHub code scanning keeps findings in the Security tab and gives the team a history.

Scope

  • action.yml
  • src/action.js
  • src/sarif.js
  • test/sarif.test.js
  • README.md

Acceptance criteria

  • sarif-out writes a SARIF 2.1.0 file with one rule per finding rule and one result per finding.
  • Locations use the file path and line already in the finding.
  • The file validates against the SARIF schema.
  • The README shows the upload step with github/codeql-action/upload-sarif.

Verification

npm test -- test/sarif.test.js

Complexity

Large (1-2 days)

Part of Stellar Wave. Comment to claim this issue before starting.

Lingua principale
JavaScript
Stelle
0
Fork
0
Merge medio
7h 28m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codepacct/codepact-action

Tutte le issue di codepacct/codepact-action

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.