Skip to content

Commit

Permalink
feat(back): fluidattacks#894 use repo url
Browse files Browse the repository at this point in the history
- The previous environment variable may contain
  a temporary user and password generated by gitlab
  while clonning the repository, so lets use
  another variable witohut it
  • Loading branch information
kamadorueda committed Sep 8, 2022
1 parent 1a87c6e commit 81052c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/main/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,8 @@ def write_provenance(
src_uri: str = (
# GitLab
(
f"git+https://{environ['CI_REPOSITORY_URL']}"
if "CI_REPOSITORY_URL" in environ
f"git+{environ['CI_PROJECT_URL']}"
if "CI_PROJECT_URL" in environ
else ""
)
# GitHub
Expand Down

0 comments on commit 81052c2

Please sign in to comment.