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

Remove def.ws prefix from aggregate sarif report #2119

Conversation

janderssonse
Copy link
Contributor

Fixes ##2006
(partially, see discussion there)

This will replace the default workspace prefix
from when creating the aggregate sarif report output. (def. megalinter-reports.sarif).

In other words, the artifact uri will be

/root/path/of/source/code

instead of as of now:

DEFAULT_WORKSPACE/root/path/of/source/code.

Proposed Changes

As the DEFAULT_WORKSPACE might only exist during
runtime lints, it needs to be removed to offer a deterministic uri, for the reports.

Readiness Checklist

Author/Contributor

  • Add entry to the CHANGELOG listing the change and linking to the corresponding issue (if appropriate)
  • If documentation is needed for this change, has that been included in this pull request

Reviewing Maintainer

  • Label as breaking if this is a large fundamental change
  • Label as either automation, bug, documentation, enhancement, infrastructure, or performance

Signed-off-by: Josef Andersson josef.andersson@gmail.com

@nvuillam
Copy link
Member

@janderssonse if you update your branch to be up to date with main it should be ok

@janderssonse janderssonse force-pushed the feature/remove-def-ws-from-aggregate-sarif-report branch from 6c3d648 to e2e2337 Compare December 19, 2022 00:04
This will replace the default workspace prefix
from when creating the aggregate sarif report output.
(def. megalinter-reports.sarif).

In other words, the artifact uri will be

/root/path/of/source/code

instead of as of now:

DEFAULT_WORKSPACE/root/path/of/source/code.

As the DEFAULT_WORKSPACE might only exist during
runtime, it needs to be removed.

Signed-off-by: Josef Andersson <josef.andersson@gmail.com>
@janderssonse janderssonse force-pushed the feature/remove-def-ws-from-aggregate-sarif-report branch from e2e2337 to 075023b Compare December 19, 2022 00:15
@codecov-commenter
Copy link

Codecov Report

Merging #2119 (9c6dca8) into main (9beb4d0) will increase coverage by 0.05%.
The diff coverage is 100.00%.

❗ Current head 9c6dca8 differs from pull request most recent head 075023b. Consider uploading reports for the commit 075023b to get more accurate results

@@            Coverage Diff             @@
##             main    #2119      +/-   ##
==========================================
+ Coverage   82.95%   83.00%   +0.05%     
==========================================
  Files         166      166              
  Lines        4411     4419       +8     
==========================================
+ Hits         3659     3668       +9     
+ Misses        752      751       -1     
Impacted Files Coverage Δ
megalinter/reporters/SarifReporter.py 79.13% <100.00%> (+1.56%) ⬆️
megalinter/reporters/UpdatedSourcesReporter.py 89.74% <0.00%> (+2.56%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@nvuillam nvuillam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for your contribution:)

@nvuillam nvuillam merged commit fee72d2 into oxsecurity:main Dec 19, 2022
@janderssonse janderssonse deleted the feature/remove-def-ws-from-aggregate-sarif-report branch February 17, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants