Codeberg/Community
54
325
Fork
You've already forked Community
12

Is there an option to keep track of dependency versions and/or auto-updating them? #1108

Open
opened 2023年07月21日 20:08:43 +02:00 by Andre601 · 5 comments
Contributor
Copy link

Not gonna lie. I'm a lazy person, but I also can't keep track of every dependency I use in my projects all the time, which is why I usually use dependabot on GitHub.

Logically, Codeberg does not have this bot (or to my knowledge any similar kind), so I was wondering if there is still some way to automatically keep track of dependencies and their versions and to, at the very least, receive notifications about available updates...

Not gonna lie. I'm a lazy person, but I also can't keep track of every dependency I use in my projects all the time, which is why I usually use dependabot on GitHub. Logically, Codeberg does not have this bot (or to my knowledge any similar kind), so I was wondering if there is still some way to automatically keep track of dependencies and their versions and to, at the very least, receive notifications about available updates...

There's Renovabot, Codeberg currently doesn't provide this yet. You would need to self-host it, if you would like to use it.

There's [Renovabot](https://docs.renovatebot.com/), Codeberg [currently doesn't provide this](https://codeberg.org/Codeberg-Infrastructure/configuration-as-code/issues/12) yet. You would need to self-host it, if you would like to use it.
Author
Contributor
Copy link

There's Renovabot, Codeberg currently doesn't provide this yet. You would need to self-host it, if you would like to use it.

I did have negative experiences with the bot... or more accurately with the users behind it, so it left a bad taste in my mouth...

Tho, I'll wait and and hope for the Codeberg account one to become available eventually and just manually update for now...

> There's [Renovabot](https://docs.renovatebot.com/), Codeberg [currently doesn't provide this](https://codeberg.org/Codeberg-Infrastructure/configuration-as-code/issues/12) yet. You would need to self-host it, if you would like to use it. I did have negative experiences with the bot... or more accurately with the users behind it, so it left a bad taste in my mouth... Tho, I'll wait and and hope for the Codeberg account one to become available eventually and just manually update for now...
Member
Copy link

@6543 RE: your comment Codeberg-Infrastructure/configuration-as-code#12 (comment)

Users could add the bot to their org or repo and give them the required access to create issues and PRs. The bot will automatically scrape all repos it has access to.

Caveat: User must be aware that the bot will have access to the repos and hence also the people which administrate the bot, i.e. have access to the account. Also, users cannot change the frequency of the runs or which renovate version is used.

Possible downside/challenge for CB: many repos will be onboarded, and the bot will take quite some time to process all at some point (even with caching enabled). Users usually don't clean up or opt out if the repo is not used anymore or contains only issues. Hence, at some point, a lot of repo checks will be done for no reason (in every run).

@6543 RE: your comment https://codeberg.org/Codeberg-Infrastructure/configuration-as-code/issues/12#issuecomment-1514515 Users could add the bot to their org or repo and give them the required access to create issues and PRs. The bot will automatically scrape all repos it has access to. Caveat: User must be aware that the bot will have access to the repos and hence also the people which administrate the bot, i.e. have access to the account. Also, users cannot change the frequency of the runs or which renovate version is used. Possible downside/challenge for CB: many repos will be onboarded, and the bot will take quite some time to process all at some point (even with caching enabled). Users usually don't clean up or opt out if the repo is not used anymore or contains only issues. Hence, at some point, a lot of repo checks will be done for no reason (in every run).
Author
Contributor
Copy link

Maybe one way could be to have the user create a woodpecker file that would run the renovate task, using a dedicated user account provided by CB...
That would eliminate the need for having to either use your own account (Risky) or make a dedicated account (Also kinda risky and wastes resources on CB) while not having CB handle it all by themself I would say.

Downsides are that you somehow would need to expose access tokens for the user account in question, similar to how GitHub with their GitHub token in Actions works... This would be a can of worms to deal with...
Also, one single account could face the issue of rate limits if it would gather dependency data from GitHub and alike.
Finally, maybe some concurrency problems? Like if two ci runs start close to each other...

So... yeah... probs not a good solution either.

It would already be a good thing if

A) the "adding user" experience was better. Right now you add a user and it's added... No confirmation, auth, whatever.
Tho, this is an upstream issue

B) there were actual bot/application accounts (Labeled as such) that could be added to a repo using oauth. Bonus points if it would have similar customization in terms of repo access like GitHub does (i.e. define repos the app has access to).
Having a automated user account just feels wrong.

Those are my two cents on all this.

*Maybe* one way could be to have the user create a woodpecker file that would run the renovate task, using a dedicated user account provided by CB... That would eliminate the need for having to either use your own account (Risky) or make a dedicated account (Also kinda risky and wastes resources on CB) while not having CB handle it all by themself I would say. Downsides are that you somehow would need to expose access tokens for the user account in question, similar to how GitHub with their GitHub token in Actions works... This would be a can of worms to deal with... Also, one single account could face the issue of rate limits if it would gather dependency data from GitHub and alike. Finally, maybe some concurrency problems? Like if two ci runs start close to each other... So... yeah... probs not a good solution either. It would already be a good thing if A) the "adding user" experience was better. Right now you add a user and it's added... No confirmation, auth, whatever. Tho, this is an [upstream issue](https://github.com/go-gitea/gitea/issues/27342) B) there were actual bot/application accounts (Labeled as such) that could be added to a repo using oauth. Bonus points if it would have similar customization in terms of repo access like GitHub does (i.e. define repos the app has access to). Having a automated user account just feels wrong. Those are my two cents on all this.

@6543 RE: your comment Codeberg-Infrastructure/configuration-as-code#12 (comment)
Possible downside/challenge for CB: many repos will be onboarded, and the bot will take quite some time to process all at some point (even with caching enabled). Users usually don't clean up or opt out if the repo is not used anymore or contains only issues. Hence, at some point, a lot of repo checks will be done for no reason (in every run).

Perhaps there could also be an option in private repos that resets itself every 180 days if it is not actively extended?

> @6543 RE: your comment https://codeberg.org/Codeberg-Infrastructure/configuration-as-code/issues/12#issuecomment-1514515 > Possible downside/challenge for CB: many repos will be onboarded, and the bot will take quite some time to process all at some point (even with caching enabled). Users usually don't clean up or opt out if the repo is not used anymore or contains only issues. Hence, at some point, a lot of repo checks will be done for no reason (in every run). > Perhaps there could also be an option in private repos that resets itself every 180 days if it is not actively extended?
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility

Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug

Something is not working the way it should. Does not concern outages.
bug
infrastructure

Errors evidently caused by infrastructure malfunctions or outages
Codeberg

This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome

Please join the discussion and consider contributing a PR!
docs

No bug, but an improvement to the docs or UI description will help
duplicate

This issue or pull request already exists
enhancement

New feature
infrastructure

Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal

An issue directly involving legal compliance
licence / ToS

involving questions about the ToS, especially licencing compliance
please chill
we are volunteers

Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations

Things related to Codeberg's external communication
question

More information is needed
question
user support

This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo

Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration

Migration related issues in Forgejo
s/Pages

Issues related to the Codeberg Pages feature
s/Weblate

Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker

Woodpecker CI related issue
security

involves improvements to the sites security
service

Add a new service to the Codeberg ecosystem (instead of implementing into Gitea)
upstream

An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Gitea, Forgejo, etc.)
wontfix

Codeberg's current set of contributors are not planning to spend time on delegating this issue.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#1108
Reference in a new issue
Codeberg/Community
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?