Skip to content

fix(aur): quotting when binary #5914

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

Merged
merged 1 commit into from
Jul 21, 2025
Merged

fix(aur): quotting when binary #5914

merged 1 commit into from
Jul 21, 2025

Conversation

caarlos0
Copy link
Member

fixed unclosed quote.

@caarlos0 caarlos0 self-assigned this Jul 21, 2025
@caarlos0 caarlos0 added the bug Something isn't working label Jul 21, 2025
@caarlos0 caarlos0 requested a review from Copilot July 21, 2025 19:59
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 21, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a shell quoting issue in the AUR package generation code where binary installation commands had unclosed quotes. The fix properly quotes shell arguments to prevent potential command injection vulnerabilities and syntax errors.

  • Replaces manual string formatting with proper shell argument quoting using %q format specifier
  • Updates both binary and archive artifact installation command generation
  • Includes corresponding test data update to reflect the corrected quoting

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
internal/pipe/aur/aur.go Fixed shell command generation to use proper quoting for binary installation paths
internal/pipe/aur/testdata/TestRunPipeBinaryRelease.pkgbuild.golden Updated test golden file to reflect corrected quoting in generated PKGBUILD

Copy link

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1628b0c
Status: ✅  Deploy successful!
Preview URL: https://9ea80905.goreleaser.pages.dev
Branch Preview URL: https://quote.goreleaser.pages.dev

View logs

Copy link

codecov bot commented Jul 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.65%. Comparing base (e9308f6) to head (1628b0c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5914   +/-   ##
=======================================
  Coverage   82.65%   82.65%           
=======================================
  Files         165      165           
  Lines       16519    16519           
=======================================
  Hits        13654    13654           
  Misses       2273     2273           
  Partials      592      592           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@caarlos0 caarlos0 merged commit 63a4e0a into main Jul 21, 2025
16 of 17 checks passed
@caarlos0 caarlos0 deleted the quote branch July 21, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant