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): unpausing and refractoring semgrep checks #37

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pkanoongo
Copy link
Contributor

Description

The PR restructures the repo to move the semgrep workflow action from '/static-analysis/semgrep' to '/static-analysis'. All the references to the semgrep are updated to use the new path. Also, unpausing the semgrep checks.

Fixes

  • fix(static-analysis):restructuring the repos.
  • fix(static-analysis): test unpausing semgrep checks

@pkanoongo pkanoongo requested a review from a team as a code owner November 22, 2024 23:14
Copy link
Contributor

@prathamesh16c prathamesh16c left a comment

Choose a reason for hiding this comment

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

can you update the path on the test file too

Copy link

Release notes preview

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


2.2.2 (2024-11-22)

Bug Fixes

  • static-analysis: unpausing and refractoring semgrep checks (32f4390)
  • static-analysis: updating the path on the test file (da8d48f)

Miscellaneous

  • deps: update dependency node to v18.20.4 (7d91d9b)
  • deps: update dependency node to v22 (3484024)
  • deps: update lacework/lw-scanner-action action to v1.4.3 (e6d46fa)
  • deps: update pre-commit hook pre-commit/pre-commit-hooks to v5 (33abebe)
  • deps: update pre-commit hook rhysd/actionlint to v1.7.3 (966955d)
  • deps: update pre-commit hook rhysd/actionlint to v1.7.4 (a867114)
  • deps: update thollander/actions-comment-pull-request action to v3 (2ee40ca)

@pkanoongo
Copy link
Contributor Author

pkanoongo commented Nov 22, 2024

Updated the path on test. Both checks have passed. Thanks!!

Copy link
Contributor Author

@pkanoongo pkanoongo left a comment

Choose a reason for hiding this comment

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

Fixed the path.

@@ -21,6 +21,6 @@ jobs:
- uses: open-turo/actions-gha/test@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./static-analysis/semgrep
- uses: ./static-analysis
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the path here.

@prathamesh16c prathamesh16c self-requested a review November 27, 2024 01:19
Copy link
Contributor

@prathamesh16c prathamesh16c left a comment

Choose a reason for hiding this comment

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

@pkanoongo please can you create a retroactive breaking change doc in this repo and add instructions for the consuming repos on using the refactored path of this action.

Copy link
Contributor

@tagoro9 tagoro9 left a comment

Choose a reason for hiding this comment

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

Just one thing about renaming the file

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a new breaking change. Since the action definition when being used has to be changed and people will now get something like an action not found error.

Something like this in the previous v2

image

Copy link
Contributor

Choose a reason for hiding this comment

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

I think there are 2 options:

  • Keep the file name as is
  • Create a breaking change and rename the file -> Maybe this one is better as that way consumers don't need to know that it's semgrep this action uses? (but if we add more tools running them in parallel will require refactoring the action so things can run in parallel)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think option2 is better. We will add instructions in our breaking change doc.

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