Skip to content

"bad substitution" error running action #40

Description

@krisalyssa

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions