aquasecurity / tfsec-action

Vanilla GitHub action to run tfsec
MIT License
51 stars 28 forks source link

After the release of v1.23.0 tfsec action is failing #5

Closed pacoguzman closed 2 years ago

pacoguzman commented 2 years ago

As the v1.23.0 tfsec release is not building assets the action is currently failing with the following error

Run aquasecurity/tfsec-action@v1.0.2
  with:
    additional_args: --force-all-dirs --no-color --format lovely,json --out tfsec
    soft_fail: true
    working_directory: .
    version: latest
    format: default
/usr/bin/docker run --name f155491eed488[2](https://github.com/Fonoa-Tech/terraform/runs/6809028893?check_suite_focus=true#step:4:2)a1c4fcfbb9d6e0[3](https://github.com/Fonoa-Tech/terraform/runs/6809028893?check_suite_focus=true#step:4:3)[4](https://github.com/Fonoa-Tech/terraform/runs/6809028893?check_suite_focus=true#step:4:4)d143ed8_0e48da --label 6f1[5](https://github.com/Fonoa-Tech/terraform/runs/6809028893?check_suite_focus=true#step:4:5)54 --workdir /github/workspace --rm -e INPUT_ADDITIONAL_ARGS -e INPUT_SOFT_FAIL -e INPUT_WORKING_DIRECTORY -e INPUT_VERSION -e INPUT_FORMAT -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 ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/terraform/terraform":"/github/workspace" [6](https://github.com/Fonoa-Tech/terraform/runs/6809028893?check_suite_focus=true#step:4:6)f1554:91eed4[8](https://github.com/Fonoa-Tech/terraform/runs/6809028893?check_suite_focus=true#step:4:9)82a1c4fcfbb[9](https://github.com/Fonoa-Tech/terraform/runs/6809028893?check_suite_focus=true#step:4:10)d6e034d143ed8
+ TFSEC_VERSION=latest
+ '[' latest '!=' latest ']'
++ wget -q https://api.github.com/repos/aquasecurity/tfsec/releases/latest -O -
++ grep -o -E 'https://.+?tfsec-linux-amd64'
++ head -n1
+ wget -O - -q ''
wget: bad address ''
emmanueljamet commented 2 years ago

https://github.com/aquasecurity/tfsec/issues/1779

owenrumney commented 2 years ago

fixed - problem with docker build kit.

I've added a github action to catch these issues before the release is built now

SARAN-thala commented 2 years ago

Same issue happened today for me, I'm using latest version in my pipeline. I guess the issue occurs when there is a deployment happening in tfsec builds, At the same time my pipeline runs the tfsec job, that time we got wget: bad address ''. After couple of minutes once the binaries are available with the latest tag then it should pass.