Skip to content

Commit 74a1705

Browse files
authored
fix: APL-356 git url encoding in otomi-tasks (#1808)
1 parent 8b70c56 commit 74a1705

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

charts/otomi-pipelines/templates/tekton-otomi-git-clone.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
4949
# Reading gitea credentials
5050
GITEA_USERNAME=$(cat /etc/gitea-credentials/username)
51-
GITEA_PASSWORD=$(cat /etc/gitea-credentials/password)
51+
GITEA_PASSWORD=$(cat /etc/gitea-credentials/password | jq -s -R -r @uri )
5252
5353
# Getting the full repository url
5454
export fullRepoUrl=$(params["repoUrl"])

charts/otomi-pipelines/templates/tekton-otomi-task-teams.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
git config --global --add safe.directory '*'
5050
# Reading gitea credentials
5151
GITEA_USERNAME=$(cat /etc/gitea-credentials/username)
52-
GITEA_PASSWORD=$(cat /etc/gitea-credentials/password)
52+
GITEA_PASSWORD=$(cat /etc/gitea-credentials/password | jq -s -R -r @uri )
5353
5454
# Parsing the repo url
5555
export fullRepoUrl=$(params["repoUrl"])

charts/otomi-pipelines/templates/tekton-otomi-task.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
git config --global --add safe.directory '*'
5050
# Reading gitea credentials
5151
GITEA_USERNAME=$(cat /etc/gitea-credentials/username)
52-
GITEA_PASSWORD=$(cat /etc/gitea-credentials/password)
52+
GITEA_PASSWORD=$(cat /etc/gitea-credentials/password | jq -s -R -r @uri )
5353
5454
# Parsing the repo url
5555
export fullRepoUrl=$(params["repoUrl"])

0 commit comments

Comments
 (0)