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 curl Argument list too long by using a payload.json file #376

Conversation

mpoberezhniy
Copy link
Contributor

Should fix #375.

Tested by uploading the payload via curl to an httpd server using curl -d '<json string>', which failed, and by using the payload.json which succeded. Also tested from the docker image.

@mergify mergify bot added the source label Apr 25, 2024
src/functions.sh Dismissed Show dismissed Hide dismissed
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 84.80%. Comparing base (8eb68d6) to head (761ef7e).

Files Patch % Lines
src/functions.sh 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #376      +/-   ##
==========================================
- Coverage   85.10%   84.80%   -0.31%     
==========================================
  Files           4        4              
  Lines         282      283       +1     
==========================================
  Hits          240      240              
- Misses         42       43       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jamacku jamacku left a comment

Choose a reason for hiding this comment

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

This is great. Thank you for contributing! 🚀

I also plan to remove whitespace from SARIF, as you have mentioned in #375 (comment)

@jamacku jamacku merged commit 6f5a5b5 into redhat-plumbers-in-action:main Apr 26, 2024
6 of 7 checks passed
@mpoberezhniy mpoberezhniy deleted the fix-curl-with-large-payloads branch April 26, 2024 11:50
kdudka pushed a commit to kdudka/csdiff that referenced this pull request Apr 26, 2024
... taken from a real-world example encountered
by differential-shellcheck:
redhat-plumbers-in-action/differential-shellcheck#376

Related: csutils#98
Closes: csutils#168
kdudka pushed a commit to kdudka/csdiff that referenced this pull request May 2, 2024
... taken from a real-world example encountered
by differential-shellcheck:
redhat-plumbers-in-action/differential-shellcheck#376

Related: csutils#98
Closes: csutils#168
kdudka pushed a commit to kdudka/csdiff that referenced this pull request May 3, 2024
... taken from a real-world example encountered
by differential-shellcheck:
redhat-plumbers-in-action/differential-shellcheck#376

Related: csutils#98
Closes: csutils#168
kdudka pushed a commit to kdudka/csdiff that referenced this pull request May 3, 2024
... taken from a real-world example encountered
by differential-shellcheck:
redhat-plumbers-in-action/differential-shellcheck#376

Related: csutils#98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to upload SARIF when a scanning report is too large
3 participants