From d5efe42c3b62c2e7f8c7a837f24ccd026416e29d Mon Sep 17 00:00:00 2001 From: "Mark E. Haase" Date: Mon, 20 Nov 2023 10:54:08 -0500 Subject: [PATCH] Debug github api call --- .github/workflows/build.yml | 1 + corpus/Test flow.afb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15a8abef..a8f79c5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,6 +57,7 @@ jobs: "per_page": 50, "page": 1, }); + console.log(files); const bullets = []; for (const file of files) { const flowName = file.filename; diff --git a/corpus/Test flow.afb b/corpus/Test flow.afb index c169b134..6aee3bd6 100644 --- a/corpus/Test flow.afb +++ b/corpus/Test flow.afb @@ -1 +1 @@ -{"version":"2.1.0","id":"4208ea12-ea02-4f3c-868f-7e40e6a8f651","objects":[{"id":"4208ea12-ea02-4f3c-868f-7e40e6a8f651","x":-370,"y":-430,"attrs":0,"template":"flow","children":["9ebdb2ea-6bc2-42ba-b336-9def7ca5d292"],"properties":[["name","Test flow"],["description","Using this to test github action"],["author",[["name","Mark Haase"],["identity_class","individual"],["contact_information","mhaase@mitre.org"]]],["scope","incident"],["external_references",[]],["created","2023-11-20T15:05:49.617Z"]]},{"id":"9ebdb2ea-6bc2-42ba-b336-9def7ca5d292","x":-370,"y":-430,"attrs":256,"template":"action","children":["ba5f3b12-0998-4d9f-9b39-4598157ccfdd","b8bc9e4c-6457-4675-94b6-83883df97bc5","4350d22c-54cc-4453-91b0-af9b20274961","0b2ac2cd-2ab6-481e-ab57-0398736062e8","8b6f0fe3-456e-448b-bad7-8361dba6000b","1120f2c8-b003-4640-a00b-844035ee1e3a","7bce08fa-ca8d-458b-8fd6-0aedd93e4136","1f48c9b6-1821-466a-892b-810a41a8b0d7","4212d688-3532-4aeb-a666-df2bcad44b84","f47507fd-b467-438c-9876-42c9c2e41f52","2d812791-9d24-4c92-a01f-861c352bd161","8deea9b4-b32e-443a-8e8a-cb44e97712ec"],"properties":[["name","Timestomp"],["tactic_id",null],["tactic_ref",null],["technique_id","T1099"],["technique_ref","attack-pattern--128c55d3-aeba-469f-bd3e-c8996ab4112a"],["description","Sample action"],["confidence",null],["execution_start",null],["execution_end",null]]},{"id":"ba5f3b12-0998-4d9f-9b39-4598157ccfdd","x":-405,"y":-520,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"b8bc9e4c-6457-4675-94b6-83883df97bc5","x":-370,"y":-520,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"4350d22c-54cc-4453-91b0-af9b20274961","x":-335,"y":-520,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"0b2ac2cd-2ab6-481e-ab57-0398736062e8","x":-300,"y":-475,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"8b6f0fe3-456e-448b-bad7-8361dba6000b","x":-300,"y":-430,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"1120f2c8-b003-4640-a00b-844035ee1e3a","x":-300,"y":-385,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"7bce08fa-ca8d-458b-8fd6-0aedd93e4136","x":-335,"y":-340,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"1f48c9b6-1821-466a-892b-810a41a8b0d7","x":-370,"y":-340,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"4212d688-3532-4aeb-a666-df2bcad44b84","x":-405,"y":-340,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"f47507fd-b467-438c-9876-42c9c2e41f52","x":-440,"y":-385,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"2d812791-9d24-4c92-a01f-861c352bd161","x":-440,"y":-430,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"8deea9b4-b32e-443a-8e8a-cb44e97712ec","x":-440,"y":-475,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0}],"location":{"x":-11.5,"y":3,"k":1}} \ No newline at end of file +{"version":"2.1.0","id":"4208ea12-ea02-4f3c-868f-7e40e6a8f651","objects":[{"id":"4208ea12-ea02-4f3c-868f-7e40e6a8f651","x":-370,"y":-430,"attrs":0,"template":"flow","children":["9ebdb2ea-6bc2-42ba-b336-9def7ca5d292"],"properties":[["name","Test flow"],["description","Using this to test github action"],["author",[["name","Mark Haase"],["identity_class","individual"],["contact_information","mhaase@mitre.org"]]],["scope","incident"],["external_references",[]],["created","2023-11-20T15:05:49.617Z"]]},{"id":"9ebdb2ea-6bc2-42ba-b336-9def7ca5d292","x":-370,"y":-430,"attrs":256,"template":"action","children":["ba5f3b12-0998-4d9f-9b39-4598157ccfdd","b8bc9e4c-6457-4675-94b6-83883df97bc5","4350d22c-54cc-4453-91b0-af9b20274961","0b2ac2cd-2ab6-481e-ab57-0398736062e8","8b6f0fe3-456e-448b-bad7-8361dba6000b","1120f2c8-b003-4640-a00b-844035ee1e3a","7bce08fa-ca8d-458b-8fd6-0aedd93e4136","1f48c9b6-1821-466a-892b-810a41a8b0d7","4212d688-3532-4aeb-a666-df2bcad44b84","f47507fd-b467-438c-9876-42c9c2e41f52","2d812791-9d24-4c92-a01f-861c352bd161","8deea9b4-b32e-443a-8e8a-cb44e97712ec"],"properties":[["name","Timestomp"],["tactic_id",null],["tactic_ref",null],["technique_id","T1099"],["technique_ref","attack-pattern--128c55d3-aeba-469f-bd3e-c8996ab4112a"],["description","Sample action"],["confidence",null],["execution_start",null],["execution_end",null]]},{"id":"ba5f3b12-0998-4d9f-9b39-4598157ccfdd","x":-405,"y":-520,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"b8bc9e4c-6457-4675-94b6-83883df97bc5","x":-370,"y":-520,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"4350d22c-54cc-4453-91b0-af9b20274961","x":-335,"y":-520,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"0b2ac2cd-2ab6-481e-ab57-0398736062e8","x":-300,"y":-475,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"8b6f0fe3-456e-448b-bad7-8361dba6000b","x":-300,"y":-430,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"1120f2c8-b003-4640-a00b-844035ee1e3a","x":-300,"y":-385,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"7bce08fa-ca8d-458b-8fd6-0aedd93e4136","x":-335,"y":-340,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"1f48c9b6-1821-466a-892b-810a41a8b0d7","x":-370,"y":-340,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"4212d688-3532-4aeb-a666-df2bcad44b84","x":-405,"y":-340,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":1},{"id":"f47507fd-b467-438c-9876-42c9c2e41f52","x":-440,"y":-385,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"2d812791-9d24-4c92-a01f-861c352bd161","x":-440,"y":-430,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0},{"id":"8deea9b4-b32e-443a-8e8a-cb44e97712ec","x":-440,"y":-475,"attrs":0,"template":"@__builtin__anchor","children":[],"properties":[],"angle":0}],"location":{"x":-11.5,"y":3,"k":1}}