* correctly pass secrets to workspace-containers

* update README
* helper-scripts with create symlinks helper and get composer auth github token helper
This commit is contained in:
2021-04-19 14:01:33 +03:00
parent fb9e1c6f4f
commit ff0b62ed49
11 changed files with 177 additions and 22 deletions

15
get-composer-auth.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
FILE=${HOME}/.composer/auth.json
if [[ -f "${FILE}" ]]; then
if [[ ! -z "$(cat $FILE | grep github)" ]]; then
exit 0
fi
fi
echo "Get token: https://github.com/settings/tokens/new?scopes=repo&description=Composer"
# user="USER INPUT"
read -p "Enter token: " TOKEN
composer config -g github-oauth.github.com ${TOKEN}