Skip to content

[BUG] cxcli output variables is declared in Action.yml but never referenced anywhere else. #140

@notarock

Description

@notarock

Describe the bug

The Action.yml files specifies that a cxcli variable is exported and contains the scan's outputs, but this appear to not be the case.

Expected behavior

Referencing the cxcli output from a subsequent steps should yield the scan's outputs. For example, a steps referencing a scan with the id set asscan like this should print the outputs:

      - name: Save relevant summary to cx_result.md
        run: echo "${{ steps.scan.outputs.cxcli }}"

Actual behavior

Using above steps yields an empty string.

Steps to reproduce

  1. Have a github actions file launch a scans.
  2. Add an id: something to the steps calling this action
  3. In a subsequent steps, reference the output variables cxcli like so:
      - name: Save relevant summary to cx_result.md
        run: echo "${{ steps.scan.outputs.cxcli }}"

Additional comments

We're trying to read the text output from the scan. We have resorted to using the output.log file that is created instead

Logs

Using this workflow:

      - name: Checkmarx AST CLI Action
        id: scan
        uses: checkmarx/ast-github-action@main #Github Action version
        with:
          base_uri: https://ast.checkmarx.net/
          cx_tenant: [ Redacted ]
          cx_client_id: ${{ secrets.CX_CLIENT_ID }}
          cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}

      - name: Save relevant summary to cx_result.md
        run: echo "${{ steps.scan.outputs.cxcli }}"
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions