Skip to content

Commit 1c4192e

Browse files
committed
fix hard-coded expiration date
1 parent 9b5536d commit 1c4192e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

application/src/tira_app/git_runner_integration.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import string
77
import tempfile
88
from copy import deepcopy
9+
from datetime import date
910
from datetime import datetime as dt
1011
from glob import glob
1112
from itertools import chain
@@ -14,6 +15,7 @@
1415
import gitlab
1516
import markdown
1617
import requests
18+
from dateutil.relativedelta import relativedelta
1719
from django.conf import settings
1820
from django.template.loader import render_to_string
1921
from git import Repo
@@ -1052,7 +1054,7 @@ def _create_access_token_gitHoster(self, project, repo):
10521054
"name": repo,
10531055
"scopes": ["read_registry", "write_registry"],
10541056
"access_level": 30,
1055-
"expires_at": "2024-10-08",
1057+
"expires_at": dt.strftime(date.today() + relativedelta(months=+11), "%Y-%m-%d"),
10561058
}
10571059
)
10581060

0 commit comments

Comments
 (0)