Skip to content

Commit

Permalink
Merge pull request #478 from camptocamp/private-repository
Browse files Browse the repository at this point in the history
Send authentication for private repository
  • Loading branch information
sbrunner authored Mar 9, 2022
2 parents e698d63 + eb8a32f commit d82e188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c2cciutils/scripts/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def main() -> None:
full_repo_split = full_repo.split("/")
master_branch, _ = c2cciutils.get_master_branch(full_repo_split)
security_response = requests.get(
f"https://raw.githubusercontent.com/{full_repo}/{master_branch}/SECURITY.md"
f"https://raw.githubusercontent.com/{full_repo}/{master_branch}/SECURITY.md",
headers=c2cciutils.add_authorization_header({}),
)
if security_response.ok and docker_config["latest"] is True:
security = c2cciutils.security.Security(security_response.text)
Expand Down

0 comments on commit d82e188

Please sign in to comment.