Skip to content

Commit

Permalink
Separate github token
Browse files Browse the repository at this point in the history
  • Loading branch information
wilson1000 committed Mar 7, 2024
1 parent fa9bc08 commit 2db5695
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/composer-auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
# be set with authentication credentials.
##

if [ -n "$COMPOSER_USER" ] && [ -n "$COMPOSER_PASS" ]; then
if [ -n "$COMPOSER_TOKEN" ]; then
composer config --global github-oauth.github.com "$COMPOSER_TOKEN"
fi

if [ -n "$COMPOSER_USER" ] && [ -n "$COMPOSER_PASS" ]; then
rm -f auth.json
cat <<- EOF >> auth.json
{
Expand Down

0 comments on commit 2db5695

Please sign in to comment.