|
70 | 70 | * [Delete a package](#delete-a-package) |
71 | 71 | * [List all dependents of a package](#list-all-dependents-of-a-package) |
72 | 72 | * [List all customers with access to a package](#list-all-customers-with-access-to-a-package) |
| 73 | + * [List all security issues of a package](#list-all-security-issues-of-a-package) |
73 | 74 | * [Create an artifact package file](#create-an-artifact-package-file) |
74 | 75 | * [Create an artifact package](#create-an-artifact-package) |
75 | 76 | * [Add an artifact file to an existing package](#add-an-artifact-file-to-an-existing-package) |
|
92 | 93 | * [Job](#job) |
93 | 94 | * [Show a job](#show-a-job) |
94 | 95 | * [Wait for a job to finish](#wait-for-a-job-to-finish) |
| 96 | + * [Security Issue](#security-issue) |
| 97 | + * [List an organization's security issues](#list-an-organizations-security-issues) |
95 | 98 | * [Magento legacy keys](#magento-legacy-keys) |
96 | 99 | * [List all legacy keys for a customer](#list-all-legacy-keys-for-a-customer) |
97 | 100 | * [Create a new legacy keys for a customer](#create-a-new-legacy-keys-for-a-customer) |
98 | 101 | * [Delete a legacy keys from a customer](#delete-a-legacy-keys-from-a-customer) |
99 | 102 | * [Validate incoming webhook payloads](#validate-incoming-webhook-payloads) |
100 | 103 | * [License](#license) |
101 | 104 |
|
102 | | -<!-- Added by: wissem, at: Fri Oct 16 14:23:54 CEST 2020 --> |
| 105 | +<!-- Added by: wissem, at: Wed May 26 12:28:19 CEST 2021 --> |
103 | 106 |
|
104 | 107 | <!--te--> |
105 | 108 |
|
@@ -505,7 +508,8 @@ $client->subrepositories()->mirroredRepositories()->removePackages($subrepositor |
505 | 508 | #### List an organization's packages |
506 | 509 | ```php |
507 | 510 | $filters = [ |
508 | | - 'origin' => \PrivatePackagist\ApiClient\Api\Packages::ORIGIN_PRIVATE, // optional filter to only receive packages that can be added to customers |
| 511 | + 'origin' => \PrivatePackagist\ApiClient\Api\Packages::ORIGIN_PRIVATE, // optional filter to only receive packages that can be added to customers, |
| 512 | + 'security-issue-state' => \PrivatePackagist\ApiClient\Api\SecurityIssues::STATE_OPEN, // optional filter to filter packages with open security issues, |
509 | 513 | ]; |
510 | 514 | $packages = $client->packages()->all($filters); |
511 | 515 | ``` |
@@ -581,6 +585,15 @@ $client->packages()->listCustomers('acme-website/package'); |
581 | 585 | ``` |
582 | 586 | Returns a list of customers with access to the package. |
583 | 587 |
|
| 588 | +#### List all security issues of a package |
| 589 | +```php |
| 590 | +$filters = [ |
| 591 | + 'security-issue-state' => \PrivatePackagist\ApiClient\Api\SecurityIssues::STATE_OPEN, |
| 592 | +]; |
| 593 | +$client->packages()->listSecurityIssues('acme-website/package', $filters); |
| 594 | +``` |
| 595 | +Returns a list of security issues. |
| 596 | + |
584 | 597 | #### Create an artifact package file |
585 | 598 |
|
586 | 599 | ```php |
@@ -746,6 +759,18 @@ try { |
746 | 759 | ``` |
747 | 760 | Returns the job. |
748 | 761 |
|
| 762 | +### Security Issue |
| 763 | + |
| 764 | +#### List an organization's security issues |
| 765 | + |
| 766 | +```php |
| 767 | +$filters = [ |
| 768 | + 'security-issue-state' => \PrivatePackagist\ApiClient\Api\SecurityIssues::STATE_OPEN, // optional filter to filter packages with open security issues, |
| 769 | +]; |
| 770 | +$packages = $client->securityIssues()->all($filters); |
| 771 | +``` |
| 772 | +Returns an array of security issues. |
| 773 | + |
749 | 774 | ### Magento legacy keys |
750 | 775 |
|
751 | 776 | #### List all legacy keys for a customer |
|
0 commit comments