Skip to content

Commit

Permalink
fix: 🚧 add insecure while finding a better way
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudTA authored and this-is-tobi committed Jun 1, 2023
1 parent 4b179e6 commit cba4387
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/server/src/controllers/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,24 @@ export const createRepositoryController = async (req, res) => {
let repo
try {
// const isValid = await hooksFns.createProject({ owner: user }, true)

// if (isValid?.failed) {
// const reasons = Object.values(isValid)
// .filter(({ status }) => status?.result === 'KO')
// .map(({ status }) => status?.message)
// .join('; ')
// sendUnprocessableContent(res, reasons)
// req.log.error(reasons)
// addReqLogs({
// req,
// description: 'Dépôt récupéré avec succès',
// extras: {
// reasons,
// },
// error: new Error('Failed to validation repository creation'),
// })
// addLogs('Create Project Validation', { reasons }, user.id)
// return
// }

project = await getProjectById(projectId)
if (!project) throw new Error('Le projet n\'existe pas')

Expand Down
1 change: 1 addition & 0 deletions apps/server/src/plugins/core/argo/repo-secret.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const getSecretObject = ({ repo, project, organization }) => {
},
stringData: {
url: repo.url,
insecure: 'true',
},
}
}

0 comments on commit cba4387

Please sign in to comment.