Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(res-to-affine): readiness guard must fail, not skip #742
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
base: main
Are you sure you want to change the base?
fix(res-to-affine): readiness guard must fail, not skip #742
Changes from all commits
e7306390bf78322dc207dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pin
actions/setup-nodeto an immutable commit.@v7.0.0is a mutable action reference. Replace it with the approved full 40-character commit SHA so a later tag change cannot alter this job without review.🧰 Tools
🪛 GitHub Check: Semgrep OSS
[warning] 224-224: Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag
GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g.
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608.🪛 zizmor (1.29.0)
[error] 224-224: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools
Uh oh!
There was an error while loading. Please reload this page.
Check warning on line 236 in .github/workflows/ci.yml
Omitting "--ignore-scripts" allows lifecycle scripts to run during package installation.
Check warning on line 236 in .github/workflows/ci.yml
Using dependencies without locking resolved versions is security-sensitive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/affinescript
Length of output: 15344
🏁 Script executed:
Repository: hyperpolymath/affinescript
Length of output: 11150
🏁 Script executed:
Repository: hyperpolymath/affinescript
Length of output: 21344
🌐 Web query:
npm tree-sitter-cli 0.25.0 package.json scripts install lifecycle official registry💡 Result:
The tree-sitter-cli package is available on the official npm registry [1]. While npm is a supported installation method [2][3], it functions by downloading pre-built binaries for specific platforms rather than performing a standard Node.js package build [2][3]. Regarding the install lifecycle and package.json: The tree-sitter-cli npm package includes an install script (typically named install.js) [4] which is executed during the npm install lifecycle to handle the platform-specific binary download/installation [4]. Because this relies on npm lifecycle scripts, issues can arise if scripts are disabled (e.g., using --ignore-scripts in.npmrc) [4]. Specific notes for version 0.25.0: Version 0.25.0 was released on February 1, 2025 [5]. It was a significant release that bumped the internal ABI to 15, requiring a tree-sitter.json file for parser repositories [5]. Common issues: Users have reported issues where the expected executable is missing or fails to execute after an npm install, particularly in environments where the install lifecycle script does not complete correctly or when using npx in restricted environments [4]. If the npm installation fails to provide a working binary, the official recommendation is to install via the Rust ecosystem using cargo (cargo install tree-sitter-cli --locked) [6][2][3], which builds the CLI from source, or to download the binary directly from the official GitHub releases page [6][2].
Citations:
Pin the tree-sitter toolchain and setup action.
tree-sitter-cli@^0.25.0can resolve different releases, and no lockfile controls this global install. Pin an approved exact version, commit the lockfile, and usenpm ci. Keep lifecycle scripts enabled becausetree-sitter-cliuses its install script to fetch the binary. Pinactions/setup-node@v7.0.0to an approved full commit SHA. Also update the build-job comment:test_walker.mlfails when prerequisites are absent; it does not auto-skip.🧰 Tools
🪛 GitHub Check: SonarCloud Code Analysis
[warning] 234-234: Omitting "--ignore-scripts" allows lifecycle scripts to run during package installation.
See more on https://sonarcloud.io/project/issues?id=hyperpolymath_affinescript&issues=AaB9t-kdYd1_aoRSMXIz&open=AaB9t-kdYd1_aoRSMXIz&pullRequest=742
[warning] 234-234: Using dependencies without locking resolved versions is security-sensitive.
See more on https://sonarcloud.io/project/issues?id=hyperpolymath_affinescript&issues=AaB9t-kdYd1_aoRSMXI0&open=AaB9t-kdYd1_aoRSMXI0&pullRequest=742
🪛 zizmor (1.29.0)
[warning] 234-234: ad-hoc installation of packages (adhoc-packages): installs a package outside of a lockfile
(adhoc-packages)
🤖 Prompt for AI Agents
Source: Linters/SAST tools
Uh oh!
There was an error while loading. Please reload this page.