Add a `sarif-out` input for code scanning

Abierto
#21 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
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, javascript
Área
devtools

Línea de trabajo

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.

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

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
0
Forks
0
Merge medio
7 h 28 min
PR fusionados (30 d)
10

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 codepacct/codepact-action

Todos los issues de codepacct/codepact-action

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.