Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] publishing results as artifacts and scans #10

Open
RolfMoleman opened this issue Jun 24, 2022 · 0 comments
Open

[Suggestion] publishing results as artifacts and scans #10

RolfMoleman opened this issue Jun 24, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@RolfMoleman
Copy link

Hi , First of all, I really like the extension as the tfsec tab on the UI gives a clear view of test severity. from my testing though it seems to publish the bubbles to the ui whether the results be a pass or a fail, but that could be down to my configuration.

Current state

I currently have the task added to a test pipeline as follows:

steps:
- task: tfsec@1
  inputs:
    #version: 'v1.26.0'
    debug: true
    args: '--allow-checks-to-panic --force-all-dirs --format default,json,csv,checkstyle,junit,sarif,gif --include-ignored --include-passed --out /tmp/'
    dir: '$(System.DefaultWorkingDirectory)/.build/terraform'

Currently we cannot declare any additional output formats due to json and junit already being declared in the extension code.
We cannot declare a desired output directory - this makes sense for the test results part. However, due to the output path of the results being randomly generated it is not possible to capture the results to publish them as an artifact.

Suggested improvements

  • amending the output file formats to include all of the available tfsec file formats by default
  • amend the output path to be a specific path e.g. $(System.DefaultWorkingDirectory)/tfsec_results
  • include publishing the sarif results to CodeAnalysisLogs for integration with the scans tab
@liamg liamg added enhancement New feature or request help wanted Extra attention is needed labels Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants