From ebe6f8621b8157e37897a08e844360e1c1a47ce5 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Tue, 18 Jul 2023 11:30:52 -0600 Subject: [PATCH] Update initialize script for 1.20 --- gitea/initialize-gitea.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/initialize-gitea.sh b/gitea/initialize-gitea.sh index 5b34f64..9d4bf12 100755 --- a/gitea/initialize-gitea.sh +++ b/gitea/initialize-gitea.sh @@ -44,7 +44,7 @@ if [[ ${token_found} != 1 ]] ; then new_gitea_token=$( curl -s -X POST "${GITEA_URL_PREFIX}/api/v1/users/${GITEA_USER}/tokens" \ -u ${GITEA_USER}:${GITEA_PASSWORD} \ -H "Content-Type: application/json" \ - -d '{"name":"'${CERC_GITEA_TOKEN_NAME}'", "scopes": [ "sudo", "package" ] }' \ + -d '{"name":"'${CERC_GITEA_TOKEN_NAME}'", "scopes": [ "read:admin", "write:admin", "read:organization", "write:organization", "read:repository", "write:repository", "read:package", "write:package" ] }' \ | jq -r .sha1 ) echo "This is your gitea access token: ${new_gitea_token}. Keep it safe and secure, it can not be fetched again from gitea." echo "To use with laconic-so set this environment variable: export CERC_NPM_AUTH_TOKEN=${new_gitea_token}"