77 Commits
Author SHA1 Message Date
gdm257 9fc59f0c48 Support WebDAV destination (#359)
* feat(destination): add WebDAV destination

Add a stdlib-only WebDAV destination mirroring the s3/azureblob flow:
bare-clone into a temp dir, optional zip, upload via HTTP PUT with Basic
auth, and prune stale remote files via PROPFIND/DELETE.

- types: WebDAVRepo struct, Destination.WebDAV field, Count()
- webdav: new package (UploadDirToWebDAV, DeleteObjectsNotInRepo)
- main: dispatch loop on par with azureblob
- conf.example.yml + gickup_spec.json: document the new destination

* feat: auto retry


Auto retry network errors and some situations.

Servers that disable Depth: infinity (Sabre/DAV, Nextcloud and others
answer 400/403/501) failed listing and could not prune stale files.
Try infinity once, fall back to recursive PROPFIND walk on rejection.

* refactor: use gowebdav client

Classify retry errors and make backoff interruptible.
2026-08-18 19:54:39 +02:00
dependabot[bot] a7689baf63 Bump github.com/go-git/go-git/v5 from 5.19.1 to 5.19.2 (#422)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.19.1 to 5.19.2.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Changelog](https://github.com/go-git/go-git/blob/main/HISTORY.md)
- [Commits](https://github.com/go-git/go-git/compare/v5.19.1...v5.19.2)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.19.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-10 18:41:09 +02:00
dependabot[bot] 88d9c3981f Bump golang.org/x/crypto from 0.51.0 to 0.52.0 (#410)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.51.0 to 0.52.0.
- [Commits](https://github.com/golang/crypto/compare/v0.51.0...v0.52.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.52.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-15 21:18:51 +02:00
Bernat MutandAndreas Wachter d5caefb310 Feature/discussion 391 add GitHub app support (#396)
* feat: Add GitHub App support for authentication in configuration and code

* feat: Enhance GitHub App support by updating repository fetching logic and authentication method

* test: Update dependencies, enhance configuration handling, and add GitHub client tests

- Updated dependencies in go.sum to latest versions for improved stability and security.
- Added a defer statement to close the configuration file in readConfigFile function to prevent resource leaks.
- Implemented unit tests for GenRepo's HasAppAuth method to validate authentication conditions.
- Created new tests for the GitHub client to verify behavior with and without authentication tokens, including handling of invalid and missing private key files.

* feat: Exclude G101 gosec warning for github/github_test.go

* fixed go.mod and go.sum

---------

Co-authored-by: Andreas Wachter <andreas.wachter@buddyspencer.monster>
2026-06-16 14:12:59 +02:00
Hildebrand Soethoudt c8a812e5c3 Rework of BitBucket authentication (#402)
* Rework of the BitBucket source authentication:

* Renamed 'user' to 'organization' as it better reflects the bitbucket architecture
* Added email config field, used fetch the workspace repo list with API token auth
* Added error log line in case workspace repo list fetch fails
* go-bitbucket version bump to 0.10.0

* fixed linting error

* ran go mod tidy to cleanup unused deps
2026-06-12 08:23:29 +02:00
dependabot[bot] 5d3622e30f Bump github.com/go-git/go-git/v5 from 5.19.0 to 5.19.1 (#397)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.19.0 to 5.19.1.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Changelog](https://github.com/go-git/go-git/blob/main/HISTORY.md)
- [Commits](https://github.com/go-git/go-git/compare/v5.19.0...v5.19.1)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.19.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-01 16:35:45 +02:00
Andreas Wachter d3fd3e4717 go mod tidy 2026-05-13 10:10:42 +02:00
Hildebrand Soethoudt 5f03e6cfa6 updated ktrysmt/go-bitbucket dependency to v0.9.100, that includes the BitBucket API deprecation fix as part of release v0.9.96 (#389) 2026-05-13 10:04:32 +02:00
dependabot[bot] 17c2361e3d Bump github.com/go-git/go-git/v5 from 5.18.0 to 5.19.0 (#387) 2026-05-11 18:14:58 +02:00
Andreas Wachter b34eae7ec8 updated ktrysmt/go-bitbucket 2026-04-25 09:56:52 +02:00
Andreas Wachter 9daf4cef3d updated bitbucket and gitlab code, updated dependencies (#381) 2026-04-20 10:18:02 +02:00
dependabot[bot] 9f4d798ee1 Bump github.com/go-git/go-git/v5 from 5.17.1 to 5.18.0 (#379) 2026-04-18 13:57:57 +02:00
Andreas Wachter 8214115952 Merge pull request #369 from cooperspencer/update_sourcehut
do not use the api anymore but switch to graphql
2026-04-05 19:33:34 +02:00
Andreas Wachter 45c03a96f1 do not use the api anymore but switch to graphql 2026-03-31 13:40:49 +02:00
dependabot[bot] 2fb0bc23f0 Bump github.com/go-git/go-git/v5 from 5.16.5 to 5.17.1
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.16.5 to 5.17.1.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.16.5...v5.17.1)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.17.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-30 17:15:46 +00:00
Andreas Wachter 6f020d665f Merge pull request #364 from cooperspencer/dependabot/go_modules/github.com/cloudflare/circl-1.6.3
Bump github.com/cloudflare/circl from 1.6.1 to 1.6.3
2026-02-26 16:23:53 +01:00
dependabot[bot] 86fb87733d Bump github.com/cloudflare/circl from 1.6.1 to 1.6.3
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.6.1 to 1.6.3.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.6.1...v1.6.3)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-version: 1.6.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-25 19:30:46 +00:00
dependabot[bot] cd5a752013 Bump github.com/go-git/go-git/v5 from 5.14.0 to 5.16.5
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.14.0 to 5.16.5.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.14.0...v5.16.5)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.16.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-10 00:33:33 +00:00
dependabot[bot] 270b666195 Bump golang.org/x/crypto from 0.41.0 to 0.45.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.41.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.41.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-20 02:43:43 +00:00
Gary Thomas 57bbe4093e Add support for using azure cli credential 2025-10-27 21:43:37 +00:00
Gary Thomas cfd1b6ea04 Implement azure blob destination with SAS url 2025-10-26 22:04:44 +00:00
jj 5464f6083d github: bump go-github to v74 2025-08-11 22:41:23 +00:00
Andreas Wachter 3f831c33b3 Revert "upgraded go-git to v6 (#340)"
This reverts commit 6f2bfc2419.
2025-07-24 06:55:34 +02:00
Andreas Wachter 6f2bfc2419 upgraded go-git to v6 (#340) 2025-07-03 09:06:48 +02:00
dependabot[bot] c0f74ff152 Bump github.com/cloudflare/circl from 1.6.0 to 1.6.1 (#332)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-version: 1.6.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-18 11:17:50 +02:00
Andreas Wachter 4c4cbeaca5 switched to gitlab.com/gitlab-org/api/client-go (#331) 2025-06-06 15:06:53 +02:00
Andreas Wachter 158bcc1b5c switch from gopkg.in/yaml.v3 to github.com/goccy/go-yaml (#330)
* switch from https://github.com/go-yaml/yaml to https://github.com/goccy/go-yaml

* change to ubuntu latest

* update lint
2025-06-06 12:57:52 +02:00
dependabot[bot] 4688acb8cd Bump golang.org/x/net from 0.37.0 to 0.38.0 (#318)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-20 11:46:02 +02:00
Andreas Wachter 8c3d461ae4 updated dependencies (#298) 2025-03-13 17:45:51 +01:00
Andreas Wachter b4028ef09f updated dependencies and go version (#290) 2025-01-05 20:50:04 +01:00
Andreas Wachter 3f61f4c179 updated golang.org/x/net (#285) 2024-12-31 10:02:11 +01:00
dependabot[bot] d3aa82c7f7 Bump golang.org/x/crypto from 0.25.0 to 0.31.0 (#282)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.25.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.25.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 08:34:38 +01:00
Andreas Wachter 3cd914a4e1 Add s3 (#259)
* added s3 add destination

* read environment variables for s3 buckets

* adapted example config

* added debug message

* added s3 add destination

* read environment variables for s3 buckets

* adapted example config

* added debug message
2024-08-26 13:46:16 +02:00
Andreas Wachter bd8df63dce fixed token and user, get repositories from workspaces too (Bitbucket) (#257)
* fixed token and user, get repositories from workspaces too

* tidied go.mod and go.sum

* don't look up workspaces if token is empty

* add token_file to bitbucket

* adjusted conf.example.yml
2024-08-26 11:10:10 +02:00
Andreas Wachter d290425c85 fixed onedev (#250)
* fixed onedev

* use clean instead of rm-dist
2024-08-01 15:26:26 +02:00
dependabot[bot] 1d0fda2def Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.7 (#246)
Bumps [github.com/hashicorp/go-retryablehttp](https://github.com/hashicorp/go-retryablehttp) from 0.7.5 to 0.7.7.
- [Changelog](https://github.com/hashicorp/go-retryablehttp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-retryablehttp/compare/v0.7.5...v0.7.7)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-retryablehttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 12:13:41 +02:00
Andreas Wachter e513444acc added zip function (#240)
* added zip function

* remove comment
2024-05-10 11:48:48 +02:00
Andreas Wachter b7503a9e93 update modules (#229) 2024-04-15 13:00:43 +02:00
dependabot[bot] 7175ab6d17 Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#214)
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 09:01:49 +01:00
Andreas Wachter ac9fae45ca updated modules (#212) 2024-02-27 09:09:13 +01:00
Andreas Wachter d1568d4545 Reload config (#199)
* reload on config changes

* handle prometheus metrics

* compare config structs

* create seperate object for logging
2024-01-09 14:43:51 +01:00
Andreas Wachter a70f9c939f Revert "Reload config (#196)" (#198)
This reverts commit 61cac5dda6.
2024-01-09 14:33:28 +01:00
dependabot[bot] a2f522ec7d Bump github.com/cloudflare/circl from 1.3.6 to 1.3.7 (#197)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.6 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.6...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 09:44:32 +01:00
Andreas Wachter 61cac5dda6 Reload config (#196)
* reload on config changes

* handle prometheus metrics

* compare config structs
2024-01-04 12:54:12 +01:00
Andreas Wachter 477657da67 updated modules (#195) 2023-12-31 11:16:59 +01:00
dependabot[bot] 292086e013 Bump github.com/go-git/go-git/v5 from 5.9.0 to 5.11.0 (#193)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.9.0 to 5.11.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.9.0...v5.11.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-27 18:19:55 +01:00
dependabot[bot] 470cd01363 Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#190)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 08:08:59 +01:00
dependabot[bot] 633483a275 Bump golang.org/x/net from 0.15.0 to 0.17.0 (#179)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 07:58:46 +02:00
Andreas Wachter e530b8b3df updated archiver (#175) 2023-10-03 15:53:43 +02:00
Andreas Wachter 77024fb0a5 implemented backup to organization (#169)
* implemented backup to organization

* go mod tidy

* update lint
2023-09-29 12:26:03 +02:00