Skip to content

Commit

Permalink
Fix unmatched-organization warnings for deny template (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 authored Aug 4, 2024
1 parent aaab4c5 commit e399f29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
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

0 comments on commit e399f29

Please sign in to comment.