-
Notifications
You must be signed in to change notification settings - Fork 35
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Have a github actions file launch a scans.
- Add an
id: somethingto the steps calling this action - 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 }}"

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working