Skip to content

Commit

Permalink
feat: add permission manage_runner
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
  • Loading branch information
heurtematte committed Jul 19, 2024
1 parent 0dc3a66 commit abfe457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/gitlab_admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ create_api_token() {
local expiry_date
expiry_date="$(date --date="+365 days" +%Y-%m-%d)"

curl -sSL --header "${TOKEN_HEADER}" --request POST "${API_BASE_URL}/users/${user_id}/impersonation_tokens" --data-urlencode "name=${name}" --data "scopes[]=api,create_runner" --data "expires_at=${expiry_date}" | jq -r '.token'
curl -sSL --header "${TOKEN_HEADER}" --request POST "${API_BASE_URL}/users/${user_id}/impersonation_tokens" --data-urlencode "name=${name}" --data "scopes[]=api,create_runner,manage_runner" --data "expires_at=${expiry_date}" | jq -r '.token'
}

create_bot_user() {
Expand Down

0 comments on commit abfe457

Please sign in to comment.