🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

feat(gitea): authenticate from environment variables - #11109

Merged
olblak merged 1 commit into
updatecli:mainfrom
olblak:feat/gitea/environmentcredentials
Oct 30, 2026
Merged

olblak merged 1 commit into
updatecli:mainfrom
olblak:feat/gitea/environmentcredentials

Conversation

@olblak

@olblak olblak commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Read UPDATECLI_GITEA_TOKEN and UPDATECLI_GITEA_USERNAME when the manifest doesn't set token or username, like GitHub and Azure DevOps.

A token without a username now uses oauth2 as git authentication requires a non-empty username.

Test

To test this pull request, you can run the following commands:

cd <to_package_directory>
go test

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.
  • I have tested this pull request manually with a custom Updatecli build and it works as expected.

Tradeoff

Potential improvement

Read UPDATECLI_GITEA_TOKEN and UPDATECLI_GITEA_USERNAME when the manifest
doesn't set token or username, like GitHub and Azure DevOps.

A token without a username now uses oauth2 as git authentication requires
a non-empty username.

Signed-off-by: Olblak <me@olblak.com>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d7493ccb-07ac-457c-a12e-9a43daa43546
Commits

Reviewing files that changed from the base of the PR and between 1f59d68 and a7f17b7.

Files selected for processing: 4
  • pkg/plugins/resources/gitea/client/spec.go
  • pkg/plugins/resources/gitea/client/spec_test.go
  • pkg/plugins/resources/gitea/credential/main.go
  • pkg/plugins/resources/gitea/pullrequest/main_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@olblak olblak mentioned this pull request Oct 30, 2026
2 tasks done
@olblak
olblak merged commit acdd4d2 into updatecli:main Oct 30, 2026
8 checks passed
@olblak olblak added the enhancement New feature or request label Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant