Skip to content

Not able to pass output from earlier step as text #14

@richa-p

Description

@richa-p

Hello,

I'm trying to read a file and then send it in Text section but it's not working. Here is the sample:

  • name: Read scan results summary
    id: scan-results
    run: |
    SAST_SUMMARY=$(cat sast-summary.txt)
    echo "::set-output name=SAST_SUMMARY::${SAST_SUMMARY}"
  • name: Send a message to Microsoft Teams
    if: ${{ steps.pipeline-scan.outcome == 'failure' }}
    uses: aliencube/[email protected]
    with:
    webhook_uri: ${{env.WEBHOOK_URI}}
    title: 'Veracode Pipeline Scan found vulnerabilities in ${{ env.REPOSITORY_NAME }}'
    summary: 'Flaws Summary: '
    text: 'Flaws text: ${{steps.scan-results.outputs.SAST_SUMMARY}}'
    theme_color: a72828
    actions: '[{ "@type": "OpenUri", "name": "View Results", "targets": [{ "os": "default", "uri": "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" }] }]'

Am I missing anything? Or this is not supported with the current version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions