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

fix(static-analysis): fix for semgrep check failures #52

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

pkanoongo
Copy link
Contributor

Description:
We have identified the semgrep checks failing for certain repos with non linear history as HEAD^ is unreliable in such cases, causing issues with merge commits and tags.

Solution:
Using git merge-base to dynamically determine the correct baseline commits. It identifies the common ancestor, ensuring semgrep compares the right changes. It adapts to different base branches(main, master, etc) and handles complex git histories. The solution is based of the recommendation from GHA error logs.

Copy link

Release notes preview

Below is a preview of the release notes if your PR gets merged.


3.0.1 (2024-12-19)

Bug Fixes

  • static-analysis: adding logging for debugging (d19bf37)
  • static-analysis: adding logging for debugging (20c3ab8)
  • static-analysis: adding logging for debugging (d5a7435)
  • static-analysis: adding logging for debugging (17ddaca)
  • static-analysis: fix for semgrep check failures (39e319d)
  • static-analysis: fixing the check as per suggestion by semgrep folks and fallback (0d93b8b)
  • static-analysis: fixing the check as per suggestion by semgrep folks and fallback (05a7105)
  • static-analysis: fixing the check as per suggestion by semgrep folks and fallback (1d77030)
  • static-analysis: fixing the check as per suggestion by semgrep folks (657db71)
  • static-analysis: fixing the check as per suggestion by semgrep folks (9bc98fb)
  • static-analysis: fixing the check as per suggestion by semgrep folks (4a6a480)
  • static-analysis: fixing the test check (8f90e2e)

Miscellaneous

  • deps: update open-turo/actions-security action to v3 (256a6bc)

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.

1 participant