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

ACSA-252: Switch SCA scan from maven to srcclr #691

Merged
merged 15 commits into from
Jul 31, 2024

Conversation

mstrankowski
Copy link
Contributor

Checklist

  • Jira Reference (also in PR title):
  • README updated after adding/changing behaviour of an action
  • Proposed version increment for release:
    • Patch (bugfix)
    • Minor (new feature)
    • Major (breaking changes)
  • External PR link where changes has been tested: needed

Description

Veracode is moving away from maven/gradle plugins and into their CLI tool "srcclr", we can also use the new tools ability to automatically create different projects in Veracode and link them to different application versions (despite same agent-based scan being set). So giving 1 additional input parameter on this action, project extension, should allow for neat linking of ACS_EXT_MASTER, ACS_EXT_MASTER_7_4, ACS_EXT_MASTER_7_3, ACS_EXT_MASTER_7_2 etc. with agent-based scan results from their branches without much manual work - just link the project to app in veracode and set the default branch for the project.

Still needs some work when we get information about setting maven options to skip test modules in scans. Waiting on veracode feedback on this.

Marcin Strankowski added 3 commits July 18, 2024 21:14
Still needs some work when we get information about setting maven options to skip test modules in scans. Waiting on veracode feedback on this
@mstrankowski mstrankowski requested a review from a team as a code owner July 18, 2024 19:40
Copy link
Contributor

@dsibilio dsibilio left a comment

Choose a reason for hiding this comment

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

Personally I wouldn't merge this until:

.github/actions/veracode/action.yml Outdated Show resolved Hide resolved
.github/actions/veracode/source_clear.sh Outdated Show resolved Hide resolved
.github/actions/veracode/source_clear.sh Show resolved Hide resolved
@dsibilio dsibilio requested a review from gionn July 19, 2024 07:45
version.txt Show resolved Hide resolved
.github/actions/veracode/action.yml Show resolved Hide resolved
.github/actions/veracode/source_clear.sh Show resolved Hide resolved
.github/actions/veracode/source_clear.sh Outdated Show resolved Hide resolved
Marcin Strankowski added 3 commits July 24, 2024 15:54
Action needs to be migrated on repositories using srcclr-install-options, to change it into custom_maven_exec scan directive in srcclr.yml instructions
@mstrankowski mstrankowski requested review from gionn and dsibilio July 25, 2024 08:49
docs/README.md Outdated Show resolved Hide resolved
.github/actions/veracode/action.yml Outdated Show resolved Hide resolved
Marcin Strankowski added 3 commits July 25, 2024 18:52
@mstrankowski mstrankowski requested a review from dsibilio July 25, 2024 17:04
gionn
gionn previously approved these changes Jul 26, 2024
We don't want to display the report to all github users that aren't authorised.
Marcin Strankowski added 2 commits July 26, 2024 18:53
Works for both regular pushes and PRs, tested on testing branch stemming from alfresco-enterprise-repo/7.4.N
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dsibilio dsibilio self-requested a review July 31, 2024 08:53
Copy link
Contributor

@dsibilio dsibilio left a comment

Choose a reason for hiding this comment

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

Great work! LGTM.

IMO it would be great to have an issue or a Confluence page where we document the trickiest parts of migrating from build-tools 5.x to 6.x due to this change.

E.g.: how to deal with test modules, custom Maven commands, and whatever else may not be immediately apparent from this PR

@mstrankowski mstrankowski merged commit a8d05da into master Jul 31, 2024
7 checks passed
@mstrankowski mstrankowski deleted the feature/ACSA-252_replace_veracode_plugin_with_cli branch July 31, 2024 12:24
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.

3 participants