1
1
mirror of https://github.com/Byron/gitoxide synced 2025-10-06 01:52:40 +02:00

36 Commits

Author SHA1 Message Date
Copilot
3a470d1e8e feat: Make all Url fields public
This way it's easier to manipulate the URL at will. Since there is no validation, users of URLs should never take a parsed structure, but instead take the path or URL directly to parse it themselves.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Byron <63622+Byron@users.noreply.github.com>
2025-08-28 08:26:51 +00:00
Eliah Kagan
f3a4ad6d82 Add CDLA-Permissive-2.0 license to cargo deny allowlist
The newly listed license is permissive. Specifically:

- https://cdla.dev/permissive-2-0/
- https://spdx.org/licenses/CDLA-Permissive-2.0.html

It is newly used by `webpki-roots` for data that were formerly
marked as being licensed under MPL-2.0. For full details, see:

- https://github.com/rustls/webpki-roots/releases/tag/v%2F0.26.9
- https://github.com/rustls/webpki-roots/pull/88
- https://github.com/mozilla/www.ccadb.org/issues/188

MPL-2.0 is not delisted, as we still need it at least for `uluru`.
2025-05-01 12:08:10 -04:00
Eliah Kagan
9fa72c1f0f Remove old unused cargo-deny license.clarify entry
3cfd7fa (#1927) removed `LicenseRef-ring` from the `cargo deny`
license allowlist, because we no longer used any `ring` version old
enough to involve the old custom license. But the associated entry
in the `license.clarify` array that definded `LicenseRef-ring` was
not removed, even though it's not needed either given that the
license it clarifies is no longer referenced. This cleans that up.
2025-04-14 17:47:00 -04:00
Eliah Kagan
f8fb226950 Use "reason" field to explain ignored advisory
This turns the comment in `cargo.deny` explaining why we currently
ignore the informational advisory RUSTSEC-2024-0436 in `paste` into
data that could be parsed and displayed by tools, by using the form
with `id` and `reason` fields, where the old comment text is the
value of the `reason` field.

This is one of the forms documented in:
https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html#the-ignore-field-optional
2025-04-05 00:29:31 -04:00
Eliah Kagan
3cfd7fa035 Delist LicenseRef-ring, as ring no longer uses it
Before this change, we get a warning:

    $ cargo deny --workspace --all-features check licenses
    warning[license-not-encountered]: license was not encountered
       ┌─ /home/ek/source/repos/gitoxide/deny.toml:32:6
       │
    32 │     "LicenseRef-ring",
       │      ━━━━━━━━━━━━━━━ unmatched license allowance

    licenses ok

The same warning is shown in the `cargo-deny` job check on CI.

This happens because `ring` no longer uses a custom/nonstandard
license, instead using `Apache-2.0 AND ISC` since version 0.17.10.
(See https://github.com/briansmith/ring/pull/2402 and
https://crates.io/crates/ring/versions for details.)

Nothing in this workspace depends directly or directly on old
versions of `ring` that use that license, so this removes it from
the list of licenses in `deny.toml`.
2025-04-05 00:15:42 -04:00
Eliah Kagan
56ecb637f3 Delist withdrawn RUSTSEC-2025-0014
The `humantime` crate briefly had unmaintained status, for which
RUSTSEC-2025-0014 was issued. It has since become maintained again,
and that advisory has been withdrawn. So this removes it from the
list of advisores we allow `cargo deny` to ignore.

Background:

- https://rustsec.org/advisories/RUSTSEC-2025-0014.html (advisory)
- https://github.com/rustsec/advisory-db/pull/2249 (issued)
- https://github.com/rustsec/advisory-db/pull/2252 (withdrawn)
- cf7f34d in #1882 (commit that ignored it, among other changes)
2025-03-18 09:57:17 -04:00
Sebastian Thiel
cf7f34dcd6 fix cargo-deny using a prodash-update and ignore directive 2025-03-11 15:38:53 +08:00
Eliah Kagan
9c708dbb02 Drop unused "Unicode-DFS-2016" license from allowed list
`cargo deny` warned that "Unicode-DFS-2016" appeared in the list of
allowed licenses but was not used by any dependency. This list had
both "Unicode-3.0" and "Unicode-DFS-2016".

Possibly relevant is that `unicode-ident` updated its license
in 1.0.14 (https://github.com/dtolnay/unicode-ident/pull/28),
changing from "Unicode-DFS-2016" to "Unicode-3.0".

The "Unicode-3.0" license was added to `deny.toml` in 5173e9a
(#1668), but "Unicode-DFS-2016" was not removed at that time. It
looks like some Unicode-related packages still used that license at
that time. But it does not seem to be needed here anymore.
2025-02-25 15:59:05 -05:00
Eliah Kagan
0c474640f5 Revert "make auditing pass the hard way"
In 0e9299c (#1854), RUSTSEC-2025-0007 was listed as ignored to let
`cargo deny advisories` pass. That advisory has been withdrawn, as
noted in https://rustsec.org/advisories/RUSTSEC-2025-0007.html:

> After this advisory was published, the author graciously agreed
> to give access to the rustls team. The rustls team is committed
> to providing security (only) maintenance for *ring* for the
> foreseeable future.

It is no longer necessary to list that advisory as ignored.

This reverts commit 0e9299c65e.
2025-02-25 14:08:52 -05:00
Sebastian Thiel
0e9299c65e make auditing pass the hard way 2025-02-22 16:55:31 +01:00
Sebastian Thiel
5173e9a2d8 update all dependencies to help wtih cargo-deny 2024-11-12 08:30:33 +01:00
Sebastian Thiel
e42e88baa5 adjust deny.toml to make audit pass 2024-08-05 14:28:49 +02:00
Sebastian Thiel
594b4886c4 reproduce url parsing issue discovered by cluserfuzz.
It's notable that this happens with `url` 2.5.1 which comes with
`idna` 1.0. It contains many fixes, for instance it seems to not
be vulnerable anymore to long input, but it fails with a seemingly
simple URL.
2024-06-16 16:38:38 +02:00
Sebastian Thiel
e955770c0b fix: symlink support for zip archives
This started working with the upgradde of the `zip` crate.
2024-05-22 13:09:45 +02:00
Sebastian Thiel
6f55f2abd1 fix-CI 2024-05-22 12:21:13 +02:00
Sebastian Thiel
28a7afc892 Upgrade lock-file to latest version to avoid cargo-deny failure 2024-04-22 09:06:36 +02:00
Sebastian Thiel
8fd79497bf bring back serde without precompiled binaries 2023-08-21 07:46:38 +02:00
Sebastian Thiel
9fe7b6d8be chore: assure serde_derive still gets compiled from source 2023-08-20 13:42:33 +02:00
Sebastian Thiel
567b1a4488 Add compression support to gix archive, which is where it should shine. 2023-07-22 09:41:09 +02:00
Sebastian Thiel
d45f57a714 Finally update expectrl to get rid of security exception in tests
Please enter the message for your patch. Lines starting with
2023-04-03 12:51:12 +02:00
Sebastian Thiel
07cd4a869d fix: GIT_CEILING_DIRECTORIES now handles UNC paths correctly #(730).
Previously ceiling directories that were UNC paths would not work together
with directories which were not due to different bases.

Now ceiling directories will be converted non-UNC paths before using them.
2023-02-13 16:10:13 +01:00
Sebastian Thiel
4308a209dd fix!: max-pure now builds without any C build tooling due to lack of openssl-sys. (#602)
To make this work, we leave the `reqwest` configuration to downstream crates.
Note that this means downstream will have to select their TLS settings
themselves, so builds may fail after upgrade until this is done.

An example for a `reqwest` configuration can be found in the
`gitoxide` Cargo.toml in the root of the `gitoxide` repository.
2022-11-21 19:01:38 +01:00
Sebastian Thiel
56ba481f4c Merge branch 'main' into filter-refs-by-spec 2022-08-31 10:32:50 +08:00
Sebastian Thiel
2c89df8262 fix cargo-deny 2022-08-31 09:17:01 +08:00
Sebastian Thiel
c02443991f Try to pacify rust-sec (#450) 2022-08-29 20:58:16 +08:00
Sebastian Thiel
6a55a7bc33 Also setup the tty accordingly to not echo input (#450) 2022-08-29 20:11:28 +08:00
Sebastian Thiel
a4ec2e2b27 save state with restore and password reading, without hiding (#450) 2022-08-29 19:57:46 +08:00
Kian-Meng Ang
e9fcb70e42 Fix typos 2022-07-22 21:32:36 +08:00
Sebastian Thiel
f1e107aa86 simple creation of test-archives (#384)
XZ encoding isn't quite en par yet though.
2022-04-14 13:38:52 +08:00
Svetlin Stefanov
e4d6685064 feat: Add git_config::values::Path for a typesafe git path (#331)
Add a `Path` type to the `git_config::values` which
can be interpolated according to gits own path interpolation
rules.
2022-02-21 17:31:03 +08:00
Sebastian Thiel
d9451e8d7f fix: downgrade dashmap to 4.0 to avoid unsoundness.
See https://github.com/xacrimon/dashmap/issues/167 for tracking
progress on resolving the issue.
2022-02-01 14:38:28 +08:00
Sebastian Thiel
dc7b3959be ignore dashmap security issue for now (#293) 2022-01-15 08:17:11 +08:00
Sebastian Thiel
72050ef6c4 [#189] remove special handling of time from deny.toml 2021-08-31 16:04:12 +08:00
Edward Shen
c304234831 add exclusions for time crate 2021-05-21 07:53:39 +08:00
Edward Shen
a5ee6b88eb Allow multiple versions 2021-05-21 07:53:39 +08:00
Edward Shen
1f0207f3c1 Add deny.toml 2021-05-21 07:53:39 +08:00