]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fix gitlab QA: Gitlab token need to have an expiration date + improve reliabi...
authorPierre <pierre.guillot@sonarsource.com>
Mon, 26 Jun 2023 13:52:32 +0000 (15:52 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 30 Jun 2023 20:02:59 +0000 (20:02 +0000)
.cirrus.yml

index 1409819dc9a29286991714933075e414e563ed03..8e943af017cbf7788fb8248909abca802a5daee5 100644 (file)
@@ -422,9 +422,11 @@ qa_gitlab_task:
               { cat >/tmp/setup.rb <<-'EOF'
                 token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token');
                 token.set_token('token-here-456');
+                token.expires_at = Date.today+10.day
                 token.save!;
                 token_read = User.find_by_username('root').personal_access_tokens.create(scopes: [:read_user], name: 'token_read');
                 token_read.set_token('token-read-123');
+                token_read.expires_at = Date.today+10.day
                 token_read.save!;
                 user = User.find_by_username('root');
                 user.password = 'eng-YTU1ydh6kyt7tjd';