|
97 | 97 | * [List all dependents of a package](#list-all-dependents-of-a-package)
|
98 | 98 | * [List all customers with access to a package](#list-all-customers-with-access-to-a-package)
|
99 | 99 | * [List all security issues of a package](#list-all-security-issues-of-a-package)
|
| 100 | + * [Show the security monitoring config of a package](#show-the-security-monitoring-config-of-a-package) |
| 101 | + * [Edit the security monitoring config of a package](#edit-the-security-monitoring-config-of-a-package) |
100 | 102 | * [Create an artifact package file](#create-an-artifact-package-file)
|
101 | 103 | * [Create an artifact package](#create-an-artifact-package)
|
102 | 104 | * [Add an artifact file to an existing package](#add-an-artifact-file-to-an-existing-package)
|
|
128 | 130 | * [Validate incoming webhook payloads](#validate-incoming-webhook-payloads)
|
129 | 131 | * [License](#license)
|
130 | 132 |
|
131 |
| -<!-- Added by: zanbaldwin, at: Wed May 17 20:53:35 CEST 2023 --> |
| 133 | +<!-- Added by: glaubinix, at: Wed 27 Sep 2023 14:25:14 BST --> |
132 | 134 |
|
133 | 135 | <!--te-->
|
134 | 136 |
|
@@ -858,6 +860,24 @@ $client->packages()->listSecurityIssues('acme-website/package', $filters);
|
858 | 860 | ```
|
859 | 861 | Returns a list of security issues.
|
860 | 862 |
|
| 863 | +#### Show the security monitoring config of a package |
| 864 | +```php |
| 865 | +$client->packages()->showSecurityMonitoringConfig('acme-website/package'); |
| 866 | +``` |
| 867 | +Returns the security monitoring config of the package. |
| 868 | + |
| 869 | +#### Edit the security monitoring config of a package |
| 870 | +```php |
| 871 | +$config = [ |
| 872 | + "monitorAllBranches" => false, // If set to true then monitoredBranches will be ignored and can be omitted |
| 873 | + "monitoredBranches" => [ |
| 874 | + "dev-main" |
| 875 | + ], |
| 876 | +]; |
| 877 | +$client->packages()->editSecurityMonitoringConfig('acme-website/package', $config); |
| 878 | +``` |
| 879 | +Returns the edited security monitoring config of the package. |
| 880 | + |
861 | 881 | #### Create an artifact package file
|
862 | 882 |
|
863 | 883 | ```php
|
|
0 commit comments