jojo/cmd
Mathieu Fenniak 63ec90b0ef [v11.0/forgejo] feat: Replace mholt/archiver/v3 with mholt/archives (#7025) (#10043)
**Backport:** #7025

Resolves #6266

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7025
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
Co-committed-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>

Backported due to `make security-check` failing in `v11.0/forgejo` branch due to a new registered vulnerability in the github.com/nwaples/rardecode.

```
/home/forgejo/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.3.linux-amd64/bin/go run golang.org/x/vuln/cmd/govulncheck@v1  ./...
=== Symbol Results ===
Vulnerability #1: GO-2025-4020
    DoS risk due to unrestricted RAR dictionary sizes in
    github.com/nwaples/rardecode
  More info: https://pkg.go.dev/vuln/GO-2025-4020
  Module: github.com/nwaples/rardecode
    Found in: github.com/nwaples/rardecode@v1.1.3
    Fixed in: N/A
    Example traces found:
      #1: modules/git/repo_commit.go:263:24: git.Repository.CommitsByFileAndRange calls io.ReadFull, which eventually calls rardecode.cipherBlockReader.Read
      #2: modules/packages/arch/metadata.go:22:2: arch.init calls archiver.init, which calls rardecode.init
      #3: modules/git/repo_language_stats.go:198:32: git.Repository.GetLanguageStats calls bytes.Buffer.ReadFrom, which calls rardecode.limitedReader.Read
Your code is affected by 1 vulnerability from 1 module.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
exit status 3
make: *** [Makefile:526: security-check] Error 1
```

Co-authored-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10043
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2025-11-10 17:30:23 +01:00
..
forgejo [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
actions.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_auth.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_auth_ldap.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_auth_ldap_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_auth_oauth.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_auth_stmp.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_regenerate.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_user.go Refactor to use urfave/cli/v2 (#25959) 2023-07-21 17:28:19 +08:00
admin_user_change_password.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_user_create.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_user_delete.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_user_generate_access_token.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_user_list.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
admin_user_must_change_password.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
cert.go [BRANDING] cosmetic s/Gitea/Forgejo/ in logs, messages, etc. 2024-02-05 16:02:14 +01:00
cmd.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
docs.go [BRANDING] cosmetic s/Gitea/Forgejo/ in logs, messages, etc. 2024-02-05 16:02:14 +01:00
doctor.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
doctor_convert.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
doctor_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
dump.go [v11.0/forgejo] feat: Replace mholt/archiver/v3 with mholt/archives (#7025) (#10043) 2025-11-10 17:30:23 +01:00
dump_repo.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
dump_test.go [v11.0/forgejo] feat: Replace mholt/archiver/v3 with mholt/archives (#7025) (#10043) 2025-11-10 17:30:23 +01:00
embedded.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
generate.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
hook.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
hook_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
keys.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
mailer.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
main.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
main_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
manager.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
manager_logging.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
migrate.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
migrate_storage.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
migrate_storage_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
restore_repo.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
serv.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
web.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
web_acme.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
web_graceful.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
web_https.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00