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

Argument list too long #182

Open
norbertwnuk opened this issue Jan 10, 2025 · 4 comments
Open

Argument list too long #182

norbertwnuk opened this issue Jan 10, 2025 · 4 comments

Comments

@norbertwnuk
Copy link

The example bellow shows that the action parameters are (most likely) passed as command line argument(s), as such prone to ARG_MAX limit for large ${{ toJSON( github ) }} context.

- name: Repository checkout
  uses: Wandalen/[email protected]
  with:
    attempt_limit: 2
    attempt_delay: 10000
    action: actions/[email protected]
    with: |
      fetch-depth: 0
      filter: tree:0
      show-progress: false
Run Wandalen/[email protected]
Run Wandalen/[email protected]_js_action
Error: An error occurred trying to start process '/home/runner/externals/node20/bin/node' with working directory '/home/runner/_work/gh-group-name/gh-repo-name'. Argument list too long
@dmvict
Copy link
Collaborator

dmvict commented Jan 10, 2025

Hi @norbertwnuk

I've tried your example in my testing repository and it works well.

Please, provide additional context and I probably would be able to solve the issue.

@norbertwnuk
Copy link
Author

It fails only on larger enough PRs, in my case:

image

@dmvict
Copy link
Collaborator

dmvict commented Jan 13, 2025

It fails only on larger enough PRs, in my case:

image

I see.

I'll fix it when I have time.

@jakoch
Copy link

jakoch commented Feb 21, 2025

Probably the same issue Warning: Environment variable 'INPUT_GITHUB_CONTEXT' exceeds the maximum supported length. Environment variable length: 38808 , Maximum supported length: 32766.

Is there a way to use a file instead of env.INPUT_GITHUB_CONTEXT to get around this issue,
e.g. echo '${{ toJson(github_context) }}' > github_context.json?

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

No branches or pull requests

3 participants