Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unmatched-organization warnings for deny template #688

Merged
merged 1 commit into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions deny.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = [""]
# 1 or more gitlab.com organizations to allow git sources for
gitlab = [""]
# 1 or more bitbucket.org organizations to allow git sources for
bitbucket = [""]
# github.com organizations to allow git sources for
github = []
# gitlab.com organizations to allow git sources for
gitlab = []
# bitbucket.org organizations to allow git sources for
bitbucket = []
8 changes: 4 additions & 4 deletions docs/src/checks/sources/cfg.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ Generally, I think most projects in the Rust space probably follow a similar pro

When working in a company or organization, it is often the case that all crates will be forked to a shared organization account rather than a personal Github account. However, if you lint your git sources, every new and deleted fork needs to keep that list updated, which is tedious, even if all the forks fall under the same organization (in Github terminology), even though presumably only people you trust have permission to create forks there, and you would like to just blanket trust any repo under that org.

The `allow-org` object allows you to specify 1 or more organizations or users in several VCS providers to more easily configure git sources for your projects.
The `allow-org` object allows you to specify multiple organizations or users in several VCS providers to more easily configure git sources for your projects.

#### The `github` field (optional)

Allows you to specify one or more `github.com` organizations to allow as git sources.
Allows you to specify multiple `github.com` organizations to allow as git sources.

```ini
[sources.allow-org]
Expand All @@ -107,7 +107,7 @@ github = ["YourCoolOrgGoesHere"]

#### The `gitlab` field (optional)

Allows you to specify one or more `gitlab.com` organizations to allow as git sources.
Allows you to specify multiple `gitlab.com` organizations to allow as git sources.

```ini
[sources.allow-org]
Expand All @@ -116,7 +116,7 @@ gitlab = ["YourCoolOrgGoesHere"]

#### The `bitbucket` field (optional)

Allows you to specify one or more `bitbucket.org` organizations to allow as git sources.
Allows you to specify multiple `bitbucket.org` organizations to allow as git sources.

```ini
[sources.allow-org]
Expand Down