Include metadata about the security coverage opt-in in the 'extra' attribute of composer.json files

Migrated issue

Reported by: larowlan

Problem/Motivation

Since we now allow anyone to create stable projects, we're partially violating the 'minimum-stability' flag of composer, as there are two classes of stable projects - those with security coverage and those without.
I'm planning on writing a composer plugin to warn about stable modules with no security coverage, but in order to do so, we need that metadata in composer.json.

Proposed resolution

Add metadata drawn from the security-coverage opt-in field to the 'extra' attribute of composer.json so that can be interrogated by composer plugins/scripts etc.

Remaining tasks

Reviews

User interface changes

N/A

API changes

?

Data model changes

?

Related issue: Issue #2766491

Edited by drupalbot