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

"bad substitution" error running action #40

Open
krisalyssa opened this issue Jun 15, 2023 · 0 comments
Open

"bad substitution" error running action #40

krisalyssa opened this issue Jun 15, 2023 · 0 comments

Comments

@krisalyssa
Copy link

krisalyssa commented Jun 15, 2023

I don't know how much I can paste here, as the error comes from runs in a private repo.

We're invoking it like

  gitStream:
    timeout-minutes: 5
    runs-on: ubuntu-latest
    name: gitStream workflow automation
    steps:
      - name: Evaluate Rules
        uses: linear-b/gitstream-github-action@v1
        id: rules-engine
        with:
          full_repository: ${{ github.event.inputs.full_repository }}
          head_ref: ${{ github.event.inputs.head_ref }}
          base_ref: ${{ github.event.inputs.base_ref }}
          client_payload: ${{ github.event.inputs.client_payload }}
          installation_id: ${{ github.event.inputs.installation_id }}
          resolver_url: ${{ github.event.inputs.resolver_url }}
          resolver_token: ${{ github.event.inputs.resolver_token }}

(I think this is boilerplate from your documentation.)

The error is coming from this step in the action:

  env_file=env.user
  touch $env_file
  for var in $(env | cut -d "=" -f 1); do
    value="${!var}"
    echo "$var=$value" >> "$env_file"
  done
  docker pull gitstream/rules-engine:latest
  echo "docker-pull-duration=$SECONDS" >> $GITHUB_OUTPUT
  SECONDS=0
  docker run --env-file $env_file -v $(pwd)/gitstream:/code -e USE_CACHE= -e HEAD_REF=... -e BASE_REF=main -e CLIENT_PAYLOAD="{...}"  -e RULES_RESOLVER_URL=https://qembo8hwr6.execute-api.us-west-1.amazonaws.com/prod/api/v1/gitstream/resolve -e RULES_RESOLVER_TOKEN=... -e DEBUG_MODE= gitstream/rules-engine
  echo "docker-run-duration=$SECONDS" >> $GITHUB_OUTPUT
  echo "action-run-duration=$(($EPOCHSECONDS - 1686844604))" >> $GITHUB_OUTPUT

where the value of CLIENT_PASSWORD is very large (10365 characters).

Please let me know if there is any other information I can provide.

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

1 participant