Skip to content

Commit

Permalink
Replace https from repo url to ssh for MTA compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache committed Jan 18, 2024
1 parent 47e2e10 commit e955520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions move2kube/m2k.sw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ states:
arguments:
workspace-id: ".workspaceId"
project-id: ".projectId"
remote-source: "\"git+ssh://\" + .repositoryURL + \"@\" + .sourceBranch"
remote-source: "\"git+\" + (.repositoryURL|sub(\"http(s)://?\";\"ssh://\")) + \"@\" + .sourceBranch"
transition: GetPlanning
- name: GetPlanning
type: operation
Expand Down Expand Up @@ -104,7 +104,7 @@ states:
- name: SaveTransformationOutput
type: inject
data:
gitRepo: '"ssh://" + .repositoryURL'
gitRepo: (.repositoryURL|sub(\"http(s)?://\";\"ssh://\"))
branch: .targetBranch
token: .token
workspaceId: .workspaceId
Expand Down
2 changes: 1 addition & 1 deletion move2kube/schemas/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "the git repository URL to be used",
"type": "string",
"examples": [
"bitbucket.org/gfarache31/m2k-test"
"https://bitbucket.org/gfarache31/m2k-test"
]
},
"sourceBranch": {
Expand Down

0 comments on commit e955520

Please sign in to comment.