`pio check`: emit SARIF
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start with the pio check command and compare its existing text and --json-output behavior. Review the cicd-setup example and the SARIF upload requirements. Done means pio check can produce a usable SARIF file and the example demonstrates using it for code scanning results.
Written by the indexing model from the issue text.
Description
pio check currently either emits text or JSON (with --json-output). it'd be great if it could emit SARIF files, so that they can be uploaded to GitHub which would show them as code scanning results on PRs & co.
in case it is not possible to emit SARIF then it would be nice if instead a GitHub action could be provided which can use the generated JSON to create a GitHub check result (though probably converting from JSON to SARIF might be easier?).
the advantage of emitting SARIF is that it isn't bound to GitHub: it is an open standard also supported by other tools, so users which are not hosting their code on GitHub would also profit from this.
the cicd-setup example should then be updated to use this (and maybe include an intentionally introduced warning just to show that it's being shown?)
EDIT: sorry, i just realised that i opened this in platformio-docs rather than platformio-core; could you please move the ticket?
(i initially started to open the ticket here to ask for documentation on how to do this, but then realised that most likely it simply isn't possible right now and thus wrote the ticket as a feature request against pio check rather than a simple docs update request)
- Dominant language
- Python
- Stars
- 9.6k
- Forks
- 916
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from platformio/platformio-core
-
Toolchain include order from DumpIntegrationIncludes depends on directory order (unsorted glob)Possibly taken @Leooo21 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
platformio/platformio-core#5555 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
platformio/platformio-core#5554 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
platformio/platformio-core#5552 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
platformio/platformio-core#5551 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
platformio/platformio-core#5553 ·
Maintainers usually reply within 1 day
All issues in platformio/platformio-core
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day