小编Zam*_*ozo的帖子

在 GitHub Actions 中获取“参数列表太长”

我正在遵循 HashiCorp 的学习指南,了解如何设置 GitHub Actions 和 terraform。除了使用 Terraform 计划更新 PR 的步骤之外,一切都运行良好。

\n

我遇到以下错误:

\n
\nAn error occurred trying to start process \'/home/runner/runners/2.287.1/externals/node12/bin/node\' with working directory \'/home/runner/work/ccoe-aws-ou-scp-manage/ccoe-aws-ou-scp-manage\'. Argument list too long\n\n
Run Code Online (Sandbox Code Playgroud)\n

我正在使用的代码是:

\n
    - uses: actions/github-script@0.9.0\n      if: github.event_name == \'pull_request\'\n      env:\n        PLAN: "terraform\\n${{ steps.plan.outputs.stdout }}"\n      with:\n        github-token: ${{ secrets.GITHUB_TOKEN }}\n        script: |\n          const output = `#### Terraform Format and Style \\`${{ steps.fmt.outcome }}\\`\n          #### Terraform Initialization \xe2\x9a\x99\xef\xb8\x8f\\`${{ steps.init.outcome }}\\`\n          #### Terraform Plan \\`${{ steps.plan.outcome }}\\`\n          <details><summary>Show Plan</summary>\n          \\`\\`\\`${process.env.PLAN}\\`\\`\\`\n          </details>\n          *Pusher: …
Run Code Online (Sandbox Code Playgroud)

github terraform github-actions cicd

7
推荐指数
1
解决办法
5603
查看次数

标签 统计

cicd ×1

github ×1

github-actions ×1

terraform ×1