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

Change: script_calls_recommended group2 regex to match multilne #752

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

NiklasHargarter
Copy link
Contributor

What

Fixes a bug in check_script_calls_recommended that gives a false positive that there is no group 2 tag in the VT when the script tag value spans multiple lines.

The tests did not catch this because they did not cover this case.
The regex now uses re.DOTALL.
The value pattern is changed to .*? to not over match when using the DOTALL flag.

Why

References

Jira VTOPS-220

Checklist

  • Tests

@NiklasHargarter NiklasHargarter requested a review from a team as a code owner September 10, 2024 13:45
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA fe5aa31.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link

Conventional Commits Report

Type Number
Changed 1

🚀 Conventional commits found.

@mbrinkhoff mbrinkhoff added the make release To trigger GitHub release action label Sep 10, 2024
@mbrinkhoff mbrinkhoff merged commit 63b5a34 into main Sep 10, 2024
13 checks passed
@mbrinkhoff mbrinkhoff deleted the script_calls_recommended_multiline branch September 10, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
make release To trigger GitHub release action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants