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

can't delete secret -- values was included in the input but no value was provided #4

Open
SteveDevOps opened this issue Oct 22, 2022 · 0 comments

Comments

@SteveDevOps
Copy link

SteveDevOps commented Oct 22, 2022

I followed example syntax for delete.. getting this / includes debug:

##[debug]Evaluating condition for step: 'Delete Secret'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Delete Secret
##[debug]Loading inputs
##[debug]Evaluating: secrets.REPO_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'REPO_TOKEN'
##[debug]=> ''
##[debug]Result: '
'
##[debug]Evaluating: format('PLATOPSTESTAPP_0PROFILE', env.SLOTNAME)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'PLATOPSTESTAPP
0_PROFILE'
##[debug]..Evaluating Index:
##[debug]....Evaluating env:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'SLOTNAME'
##[debug]..=> 'pr15'
##[debug]=> 'PLATOPSTESTAPP_pr15_PROFILE'
##[debug]Result: 'PLATOPSTESTAPP_pr15_PROFILE'
##[debug]Loading env
Run philips-software/Repo-Secret-Manager@main
##[debug]Evaluating: inputs.action
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'action'
##[debug]=> 'delete'
##[debug]Result: 'delete'
##[debug]Evaluating: inputs.team
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'team'
##[debug]=> ''
##[debug]Result: ''
##[debug]Evaluating: inputs.token
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> ''
##[debug]Result: '
'
##[debug]Evaluating: inputs.secret-names
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'secret-names'
##[debug]=> 'PLATOPSTESTAPP_pr15_PROFILE'
##[debug]Result: 'PLATOPSTESTAPP_pr15_PROFILE'
##[debug]Evaluating: inputs.secret-values
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'secret-values'
##[debug]=> ''
##[debug]Result: ''
##[debug]Evaluating: inputs.repo
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'repo'
##[debug]=> 'platops'
##[debug]Result: 'platops'
/usr/bin/docker run --name d5581deb08dcc2ac5496bbf520cd76e668ef9_2949d3 --label 8d5581 --workdir /github/workspace --rm -e "SLOTNAME" -e "AZURE_HTTP_USER_AGENT" -e "AZUREPS_HOST_ENVIRONMENT" -e "INPUT_ACTION" -e "INPUT_TOKEN" -e "INPUT_SECRET-NAMES" -e "INPUT_REPO" -e "INPUT_TEAM" -e "INPUT_SECRET-VALUES" -e "ACTION" -e "TEAM" -e "TOKEN" -e "NAMES" -e "VALUES" -e "REPO" -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_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_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_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/platops/platops":"/github/workspace" 8d5581:deb08dcc2ac5496bbf520cd76e668ef9
Traceback (most recent call last):
File "/app/main.py", line 158, in
inp = get_input_from_cli()
File "/app/main.py", line 121, in get_input_from_cli
secret_values = get_optional_value_from_input(args, valuesCommand).split(',')
File "/app/main.py", line 50, in get_optional_value_from_input
return get_element_after_value(arg_list, label,
File "/app/main.py", line 63, in get_element_after_value
raise ValueError(error_message)
ValueError: --values was included in the input but no value was provided
##[debug]Docker Action run completed with exit code 1
##[debug]Finishing: Delete Secret

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