Skip to content

Commit

Permalink
Update gitea.go (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrie30 authored Mar 8, 2025
1 parent b04873e commit 2747f5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [1.11.1] - unreleased
### Added
### Changed
### Deprecated
### Removed
### Fixed
- Gitea internal repos token injection on https clones; thanks @drmacdon
### Security

## [1.11.0] - 9/28/2024
### Added
- Reclone name and description to reclone output
Expand Down
2 changes: 1 addition & 1 deletion scm/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (c Gitea) filter(rps []*gitea.Repository) (repoData []Repo, err error) {

if os.Getenv("GHORG_CLONE_PROTOCOL") == "https" {
cloneURL := rp.CloneURL
if rp.Private {
if rp.Private || rp.Internal {
cloneURL = c.addTokenToCloneURL(cloneURL, os.Getenv("GHORG_GITEA_TOKEN"))
}
r.CloneURL = cloneURL
Expand Down

0 comments on commit 2747f5c

Please sign in to comment.