elliottpope / cloudfoundry-cli-action

A GitHub Action to run arbitrary CF CLI commands
Apache License 2.0
0 stars 2 forks source link

exec: "/entrypoint.sh": permission denied: unknown on V7 #4

Open alexquitiaquez opened 1 year ago

alexquitiaquez commented 1 year ago

Hi, I tried to use the tag v7, but I've got an permission denied error on /entrypoint.sh script, it'S run in a self-hosted runner, here below some error log ans and a screenshot, thanks ` Run elliottpope/cloudfoundry-cli-action@v7

[debug]Evaluating: inputs.command

[debug]Evaluating Index:

[debug]..Evaluating inputs:

[debug]..=> Object

[debug]..Evaluating String:

[debug]..=> 'command'

[debug]=> 'create-service "$SERVICE_NAME" "$SERVICE_PLAN" "$SERVICE_INSTANCE"'

[debug]Result: 'create-service "$SERVICE_NAME" "$SERVICE_PLAN" "$SERVICE_INSTANCE"'

/usr/bin/docker run --name ellpopecloudfoundrycliactionv7_2804d3 --label abc952 --workdir /github/workspace --rm -e "ARTIFACTORY_API_KEY" -e "ARTIFACTORY_USER" -e "JFROG_CLI_ENV_EXCLUDE" -e "JFROG_CLI_OFFER_CONFIG" -e "JFROG_CLI_BUILD_NAME" -e "JFROG_CLI_BUILD_NUMBER" -e "JFROG_CLI_BUILD_URL" -e "JFROG_CLI_USER_AGENT" -e "PCF_PASSWORD" -e "SERVICE_NAME" -e "SERVICE_PLAN" -e "SERVICE_INSTANCE" -e "INPUT_CF_API" -e "INPUT_USERNAME" -e "INPUT_PASSWORD" -e "INPUT_ORG" -e "INPUT_SPACE" -e "INPUT_COMMAND" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_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_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -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 "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_DEBUG" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -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 "/mnt/actions-runner/_work/_temp/_github_home":"/github/home" -v "/mnt/actions-runner/_work/_temp/_github_workflow":"/github/workflow" -v "/mnt/actions-runner/_work/_temp/_runner_file_commands":"/github/file_commands" -v "/mnt/actions-runner/_work/blueprints-annuaire-service/blueprints-annuaire-service":"/github/workspace" ellpope/cloudfoundry-cli-action:v7 "create-service \"$SERVICE_NAME\" \"$SERVICE_PLAN\" \"$SERVICE_INSTANCE\"" docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/entrypoint.sh": permission denied: unknown.

[debug]Docker Action run completed with exit code 126

[debug]Finishing: Creation services ☁️

` image

mik115 commented 1 month ago

For personal needs we created a fork with the entry point executable.
You can find the action published here: https://github.com/marketplace/actions/cloudsome-cloud-foundry-cli-github-action