Skip to content

Comments

fix(pinact): ensure latest resolves latest GitHub release#118

Merged
ReenigneArcher merged 5 commits intomasterfrom
fix/pinact/ensure-latest-resolves-latest-GitHub-release
Feb 12, 2026
Merged

fix(pinact): ensure latest resolves latest GitHub release#118
ReenigneArcher merged 5 commits intomasterfrom
fix/pinact/ensure-latest-resolves-latest-GitHub-release

Conversation

@ReenigneArcher
Copy link
Member

Description

When latest was specified it would use v1.6.0 instead of the actual latest version. This PR will use the github api to determine the latest version.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (944c3bf) to head (7788d2b).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #118   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines         1301      1346   +45     
  Branches       137       138    +1     
=========================================
+ Hits          1301      1346   +45     
Flag Coverage Δ
Linux 100.00% <100.00%> (ø)
Windows 82.68% <100.00%> (+0.59%) ⬆️
macOS 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
actions/pinact/pinact.js 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ReenigneArcher ReenigneArcher force-pushed the fix/pinact/ensure-latest-resolves-latest-GitHub-release branch from a2ea232 to a27d336 Compare February 12, 2026 00:00
Replace many shell-based execSync calls with execFileSync and introduce safety measures to prevent command injection and improve cross-platform reliability. Adds validateSafeString to validate inputs (tags, repo names, versions), findExecutable (with caching) to locate git/go executables, and uses explicit argument arrays when invoking git/go/pinact. Also validates GitHub API tag_name, tightens error handling/cleanup during build-from-source, and avoids interpolating secrets into logged strings. Tests updated to mock execFileSync, adapt assertions, and cover new failure modes and validation behaviors.
Change go install to use the module path with version (github.com/<repo>@<version>) and pass '/cmd/pinact' as the package to install. Update tests to match the new install invocation and to improve the execFileSync mock: handle pinact execution first, extract helpers for go and git command handling (handleGoCommand, handleGitCommand, handleGitDiff), use optional chaining in call filters, and adjust assertions to the new install argument ordering. These changes align installation with Go modules and make tests clearer and more robust.
Remove conditional go install path and always clone & build the pinact repository for reliability (avoids module path/version issues). Adjust install logic to clone the repo, checkout the requested version, run local go install, and clean up the temp dir. Update tests to expect git clone/checkout and local go install calls, account for multiple clone calls when checking for token usage, and change the error-handling test to use a pinact-related error fixture.
Add a new pinactConfig input to actions/pinact/ci-matrix.json. The input embeds a YAML pinact config (version: 3) that ignores actions matching "LizardByte/.*" with ref "master" and sets a custom separator. This allows passing pinact configuration inline to the workflow to exclude the specified actions.
@ReenigneArcher ReenigneArcher force-pushed the fix/pinact/ensure-latest-resolves-latest-GitHub-release branch from 6128751 to 7788d2b Compare February 12, 2026 01:59
@sonarqubecloud
Copy link

@ReenigneArcher ReenigneArcher merged commit 9bf3ef7 into master Feb 12, 2026
81 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/pinact/ensure-latest-resolves-latest-GitHub-release branch February 12, 2026 02:23
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