karancode / kustomize-github-action

:european_castle: Github action for kustomize
https://github.com/marketplace/actions/kustomize-github-action
MIT License
46 stars 29 forks source link

[BUG] Failing to get the kustomize download url #35

Closed JotBePunkt closed 1 year ago

JotBePunkt commented 2 years ago

Describe the bug

When running this action, lots of errors are thrown (jq: error (at <stdin>:1): Cannot index string with string "assets" see also logs below) and kustomize cannot be downloaded.

To Reproduce

name: kustomize
on: [push]
jobs:
  kustomize-qa:
    name: Kustomize QA
    runs-on: default-runner
    steps:
      - name: 'Checkout'
        uses: actions/checkout@master
      - name: 'Kustomize Build'
        uses: karancode/kustomize-github-action@master
        with:
          kustomize_version: '4.4.1'
          kustomize_build_dir: './xxxx'
          kustomize_comment: true

Expected behavior Kustomize can be downloaded

Screenshots/Actions log

un karancode/kustomize-github-action@master
  with:
    kustomize_version: 4.4.1
    kustomize_build_dir: ./azure-qa
    kustomize_comment: true
    enable_alpha_plugins: 0
/usr/local/bin/docker run --name e2261b9aba1b2dc44b09baaef4c333bce178_c7e731 --label 60e226 --workdir /github/workspace --rm -e INPUT_KUSTOMIZE_VERSION -e INPUT_KUSTOMIZE_BUILD_DIR -e INPUT_KUSTOMIZE_COMMENT -e INPUT_KUSTOMIZE_OUTPUT_FILE -e INPUT_KUSTOMIZE_BUILD_OPTIONS -e INPUT_ENABLE_ALPHA_PLUGINS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/runner/_work/_temp/_github_home":"/github/home" -v "/runner/_work/_temp/_github_workflow":"/github/workflow" -v "/runner/_work/_temp/_runner_file_commands":"/github/file_commands" -v "/runner/_work/xxxx/xxxx":"/github/workspace" 60e226:1b9aba1b2dc44b09baaef4c333bce178
getting download url for kustomize 4.4.1
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
jq: error (at <stdin>:1): Cannot index string with string "assets"
Downloading kustomize v4.4.1
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Failed to download kustomize v4.4.1.

Running on: master

Additional context

karancode commented 1 year ago

@JotBePunkt sorry for so late here. Thanks to @gozer, this issue is fixed. Please use v1.3.0 or @master. Thank you!

Alsaheem commented 1 year ago

@karancode the issue is not fixed yet i think there's a pull request that has a fix by someone