The Action uploads every SARIF under one fixed category
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
- 78/100
Direzione di ricerca
Start with the SARIF upload and report directory references in action.yml:215, action.yml:268, and action.yml:273, then read docs/ci.md:44 and .github/workflows/action.yml for the action’s documented inputs and workflow coverage. Run make test-short and make lint as listed in the issue. Done means separate uses preserve both alert sets, a later use cannot reuse an earlier use’s reports, and docs/ci.md describes the new input.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The upload step always passes category: spackle and the report directory is fixed, so a workflow that uses the action more than once for one commit ends with the alerts of only the last upload.
Where
action.yml:273(category: spackle)action.yml:215(out="${RUNNER_TEMP}/spackle-report")action.yml:268docs/ci.md:44
Details
Code scanning keeps one analysis per tool, category, ref and commit, so a second upload with the same category replaces the first (documented GitHub behavior; not exercised during the audit). The path input and the SARIF repository-prefix handling show that scanning a subdirectory is a supported use.
Impact
A monorepo workflow with two path values, a matrix over services, or a deterministic plus a model run closes the alerts of the earlier scans as fixed. Within one job, the second use also finds the first use's report.sarif and report.json in the shared directory, so if the second scan is refused before it writes reports, the outputs are those of the first scan.
Suggested fix
Add a sarif-category input that defaults to spackle when path is . and to spackle-<path> otherwise, pass it to the upload step, and document it in docs/ci.md. Make the report directory unique per invocation (mktemp -d "${RUNNER_TEMP}/spackle-report.XXXXXX").
Acceptance criteria
- Two uses of the action in one workflow keep both sets of alerts
- A second use in one job never reads the first use's reports
- docs/ci.md documents the input
Related: #7
Getting started
- Relevant files: action.yml, docs/ci.md, .github/workflows/action.yml
- How to run tests:
make test-short(Unix) or.\make.ps1 test-short(Windows PowerShell);make lintbefore you call it done - Related docs: docs/ci.md
Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: bug|action.yml|upload-sarif.category
- Lingua principale
- Go
- Stelle
- 0
- Fork
- 1
- Merge medio
- 8h 14m
- PR unite (30g)
- 3
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un 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 TMHSDigital/Spackle
-
ci good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
TMHSDigital/Spackle#206 ·
I maintainer di solito rispondono entro 1 giorno
-
ci severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/Spackle#205 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
TMHSDigital/Spackle#199 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
TMHSDigital/Spackle#195 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue severity: medium
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
TMHSDigital/Spackle#188 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/Spackle
Issue simili
-
bug effort:s impact:med raised-by:worker risk:low to:worker
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
medici-finance/assay#8120 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
factory:subtask
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
agent-substrate/substrate#4308 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
celestiaorg/celestia-app#8877 ·
I maintainer di solito rispondono entro 1 giorno
-
sweep
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
bketelsen/truenas-mcp#112 ·
I maintainer di solito rispondono entro 1 giorno