Skip to content

Returning zero exit code for scans with rule violations #73

@gayaldassanayake

Description

@gayaldassanayake

Description

Currently, the scan tool returns 0 as the exit code, despite having failures in the scan or not. This is not helpful in CICD pipelines, given that we might need to fail the workflow.

Steps to Reproduce

Run bal scan on a project with rule violations.
Run echo $? afterwards to recieve the exit code of the process.
It will be 0

Version

0.11.0

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions