Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json format to Audit command #10965

Merged
merged 3 commits into from Jul 25, 2022
Merged

Conversation

barryvdh
Copy link
Sponsor Contributor

Follow up on #10798 and #10898, as suggested in #10798 (comment)

This adds a format=json option to the command, to allow for. Currently in the same format it already is (because why not?). In the 'advisories' object, so a summary or the list of packages can still be added later if required. So grouped by package:

image

No actual real-life use case for this, except for opening the possibility to process it during a pipeline/action (and perhaps suggest updates or format an advisory yourself)

src/Composer/Command/AuditCommand.php Outdated Show resolved Hide resolved
@Seldaek Seldaek added this to the 2.4 milestone Jul 23, 2022
@barryvdh
Copy link
Sponsor Contributor Author

I've updated the docs and audit-format command. Not sure why CI is failing on 7.3 only. It looks a bit random?

@Seldaek
Copy link
Member

Seldaek commented Jul 23, 2022

Yeah sorry that's a temporary failure because we're on a dev version of symfony console, ignore it.

@Seldaek Seldaek merged commit a3f7c31 into composer:main Jul 25, 2022
@Seldaek
Copy link
Member

Seldaek commented Jul 25, 2022

Thanks again

@barryvdh barryvdh deleted the feat-audit-format-json branch July 25, 2022 11:16
emahorvat52 pushed a commit to emahorvat52/composer that referenced this pull request Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants