From d75ff4f1d4093b96bb246568f70db92024cd1f5f Mon Sep 17 00:00:00 2001 From: sarthak77 Date: Tue, 13 Aug 2024 19:31:29 +0530 Subject: [PATCH 1/4] Added demo action --- .github/workflows/demo.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/demo.yml diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml new file mode 100644 index 0000000..c232c65 --- /dev/null +++ b/.github/workflows/demo.yml @@ -0,0 +1,42 @@ +name: Test Traceable AST Init And Run Action With AST Scan Suite +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + InitAndRunAstScan: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Init and run scan action + uses: Traceableai/ast-action@main + with: + step_name: 'init and run' + client_scan_token: ${{ secrets.CLIENT_SCAN_TOKEN_DEMO }} + cli_version: 'latest' + scan_suite: 'github-actions-repo-suite' + traceable_server: ${{ secrets.TRACEABLE_SERVER_DEMO }} + - name: Stop Scan + if: always() + uses: Traceableai/ast-action@main + with: + step_name: 'stop' + client_scan_token: ${{ secrets.CLIENT_SCAN_TOKEN_DEMO }} + traceable_server: ${{ secrets.TRACEABLE_SERVER_DEMO }} + - name: Dummy step + run: | + echo "Post stop scan" + + functionalTest: + runs-on: ubuntu-20.04 + steps: + - name: Run a loop as functional test + run: | + for ((i=1;i<=100;i++)); + do + echo $i + done From 031c42c87401febb5c17a9301fd10cb75fac79f1 Mon Sep 17 00:00:00 2001 From: sarthak77 Date: Tue, 13 Aug 2024 19:37:02 +0530 Subject: [PATCH 2/4] nit --- .github/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index c232c65..fd4cb9d 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -18,7 +18,7 @@ jobs: step_name: 'init and run' client_scan_token: ${{ secrets.CLIENT_SCAN_TOKEN_DEMO }} cli_version: 'latest' - scan_suite: 'github-actions-repo-suite' + scan_suite: 'demo-suite' traceable_server: ${{ secrets.TRACEABLE_SERVER_DEMO }} - name: Stop Scan if: always() From 49fd60d5526faabc50f112dcb9a3fdd6cd90456c Mon Sep 17 00:00:00 2001 From: sarthak77 Date: Tue, 13 Aug 2024 19:49:34 +0530 Subject: [PATCH 3/4] random --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c322d68..da3e987 100644 --- a/README.md +++ b/README.md @@ -129,4 +129,4 @@ jobs: 3. In the next step we are executing functional tests and then running the scan in the step after that which take client_scan_token,traffic_env, and cli_version as input. - +wddwdwd From 9f896ecd51451a9b43e289cf6f271977a7f545e7 Mon Sep 17 00:00:00 2001 From: sarthak Date: Tue, 13 Aug 2024 19:55:49 +0530 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da3e987..8bdf949 100644 --- a/README.md +++ b/README.md @@ -129,4 +129,4 @@ jobs: 3. In the next step we are executing functional tests and then running the scan in the step after that which take client_scan_token,traffic_env, and cli_version as input. -wddwdwd +wddwdwdsxwxcww