This repository was archived by the owner on Jul 18, 2019. It is now read-only.
Tags: taskcluster/taskcluster-cli
Tags
Add a scriptable check for valid credentials (#182) This allows users to `taskcluster signin --check` and get an exit code of 1 if their credentials are either not found, or expired. I've successfully used it with this bash wrapper: tc() { if ! TC=$(which taskcluster) then echo "Unable to find taskcluster command" return fi CLIENTVARS=${TASKCLUSTER_CLIENT_STORE:-"/dev/shm/tcclient.creds"} if [ -f "$CLIENTVARS" ] ; then # shellcheck source=/dev/null source "$CLIENTVARS" fi if ! ${TC} signin --check; then ${TC} signin > "$CLIENTVARS" # shellcheck source=/dev/null source "$CLIENTVARS" fi ${TC} "$@" }
Bug 1395349 - refactor signin to use new client creator, don't store (#… …174) It's best to encourage users to not keep TC credentials on disk, so this writes them out as env vars instead. The result will still *read* from `~/.config/taskcluster.yml`, just not write to it. Example: ``` dustin@jemison $ eval $(./taskcluster signin --scope 'queue:*') Starting Listening for a callback on: http://localhost:33459 Opening URL: https://tools.taskcluster.net/auth/clients/new?name=cli&description=Temporary+client+for+use+on+the+command+line&scope=queue:*&expires=1d&callback_url=http%3A%2F%2Flocalhost%3A33459 Credentials recorded as environment variables dustin@jemison $ ./taskcluster api auth currentScopes { "scopes": [ "queue:*" ] } ```
PreviousNext