Skip to content

Conversation

@smockle
Copy link
Collaborator

@smockle smockle commented Dec 4, 2025

No description provided.

This PR updates the “Set results output” step so data from previous
steps is directly interpolated into the JS script, rather than passed
via environment variables. This prevents “Argument list too long” errors
(and resulting workflow failures).

Under the hood, `actions/github-script` was doing something like this:

```shell
FILINGS='/** A huge JSON blob **/' FIXINGS='/** A huge JSON blob **/' node tmp/script.js
```

Depending on the size of `FILINGS` and `FIXINGS`, this could exceed a
system’s `ARG_MAX` (https://www.in-ulm.de/~mascheck/various/argmax/ is a
good explainer).

After removing the environment variables, the argument list length is
much shorter, so the error is avoided.
Copilot AI review requested due to automatic review settings December 4, 2025 16:41
@smockle smockle requested a review from a team as a code owner December 4, 2025 16:41
Copy link
Contributor

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 attempts to refactor how filings and fixings data are passed to a GitHub Actions script by switching from environment variables to direct interpolation. However, the implementation contains a critical bug that will break the action.

Key Issue

  • The outputs filings and fixings are stringified JSON that must be parsed, but the new code removes JSON.parse() and attempts direct interpolation, which will cause syntax errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smockle smockle merged commit 9a6726b into v2 Dec 4, 2025
14 checks passed
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