You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Action to handle Sandboxes mainly as a set of clean-up activities such as:
3
6
- Deleting a sandbox
7
+
- Delete Multiple Sandboxes
4
8
- Promoting Sandbox scan to Policy Scan
5
9
- with or without deleting the sandbox
6
10
@@ -16,6 +20,7 @@ Value | Details
16
20
--- | ---
17
21
|`remove-sandbox`|Remove/Delete a sandbox|
18
22
|`promote-latest-scan`|Promote the latest Sandbox scan to a Policy|
23
+
|`clean`|Delete multiple dated sandboxes based on recent activity|
19
24
20
25
### `app-name`
21
26
**Required** - The Veracode Application Profile name
@@ -24,17 +29,33 @@ Value | Details
24
29
**Required** - The sandbox name
25
30
26
31
### `delete-on-promote`
27
-
**Optional** - Only works with `promote-latest-scan` activity and give you the option to specify if you want the Sandbox to be deleted after the last scan is promoted to a Policy Scan
28
-
32
+
**Optional** - Only works with `activity: "promote-latest-scan"` activity and give you the option to specify if you want the Sandbox to be deleted after the last scan is promoted to a Policy Scan
29
33
30
34
| Value | Details|
31
35
--- | ---
32
36
|`"false"`|**Default** - Do not delete the Sandbox |
33
37
|`"true"`| Delete the Sandbox after promoting the latest scan |
34
38
39
+
### `clean-amount`
40
+
**Optional** - The number of dated sandboxes to delete. The query of sandboxes will target Sandboxes which their `modified` date is most dated.
41
+
42
+
Value | Details|
43
+
--- | ---
44
+
|`1`|**Default** - Delete a single Sandbox |
45
+
| Any number from 1-25 | Number of sandboxes to delete |
46
+
47
+
### `clean-modified-before`
48
+
**Optional** - The attribute will instruct the clean step to only look for sandboxes which their `modified` date is older than the amount of days given as the a value.
49
+
:exclamation:__Only works in conjunction with the `clean` activity__
50
+
51
+
Value | Details|
52
+
--- | ---
53
+
|`0`|**Default** - Any sandbox |
54
+
| Any other number - X | Can only delete sandboxes which last modified at least X days ago |
55
+
35
56
## Examples
36
57
37
-
### Delete Sandbox
58
+
### Delete a Sandbox
38
59
For deleting a sandbox you can simply add the following step to your workflow job.
0 commit comments