Skip to content
Open
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
20 changes: 13 additions & 7 deletions docs/toml-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,22 @@ merge-bots = ["homu"]

### Repository environments

GitHub environments are used to configure deployment protection rules and secrets for GitHub Actions workflows. This repository can manage environment names for repositories.
GitHub environments are used to configure deployment protection rules and secrets for GitHub Actions workflows. This repository can manage environment names and deployment branch policies for repositories.

```toml
# The environments in this repository (optional)
[[environments]]
# The name of the environment (required)
name = "production"

[[environments]]
name = "staging"
# Use table-of-tables syntax where the key is the environment name
[environments.production]
# List of branch names that can deploy to this environment (optional)
# If empty or omitted, any branch can deploy
branches = ["main", "release/*"]

[environments.staging]
# Empty branches list means any branch can deploy
branches = []

[environments.development]
# No branches specified - any branch can deploy
```

### Crates.io trusted publishing
Expand Down
3 changes: 1 addition & 2 deletions repos/rust-analyzer/metrics.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ bots = []
[access.teams]
rust-analyzer = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-analyzer/rust-analyzer.github.io.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ bots = []
[access.teams]
rust-analyzer = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang-nursery/lazy-static.rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ bots = []
[access.teams]
libs = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang-nursery/rust-cookbook.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ bots = []
cookbook = "write"
lang-docs = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang-nursery/rust-lang-nursery.github.io.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ bots = []
[access.teams]
infra = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang-nursery/rust-toolstate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ infra = "write"
pattern = "master"
pr-required = false

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/a-mir-formality.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ lang-ops = "maintain"
lang-docs = "maintain"
types = "maintain"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/annotate-snippets-rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ crates = ["annotate-snippets"]
workflow-filename = "release.yml"
environment = "publish"

[[environments]]
name = "publish"
[environments.publish]
3 changes: 1 addition & 2 deletions repos/rust-lang/api-guidelines.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ bots = []
libs-api = "write"
libs = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/ar_archive_writer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ bots = []
[access.teams]
compiler = "write"

[[environments]]
name = "publish"
[environments.publish]

3 changes: 1 addition & 2 deletions repos/rust-lang/areweasyncyet.rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ wg-async = "write"
[access.individuals]
upsuper = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/arewewebyet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ arewewebyet = "maintain"
[[branch-protections]]
pattern = 'master'

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/async-book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ bots = []
[access.teams]
wg-async = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/async-crashdump-debugging-initiative.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ bots = []
[access.teams]
project-async-crashdump-debugging = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/async-fundamentals-initiative.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ wg-async = "maintain"
pattern = "master"
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/backtrace-rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ crate-maintainers = 'maintain'
[[branch-protections]]
pattern = 'master'

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/blog.rust-lang.org.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ ci-checks = [
"build",
]

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ pattern = "main"
ci-checks = []
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

12 changes: 4 additions & 8 deletions repos/rust-lang/bors-kindergarten.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ bots = ["rustbot"]
infra = "write"
infra-bors = "write"

[[environments]]
name = "bors"
[environments.bors]

[[environments]]
name = "ci"
[environments.ci]

[[environments]]
name = "production"
[environments.production]

[[environments]]
name = "staging"
[environments.staging]

7 changes: 3 additions & 4 deletions repos/rust-lang/bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ pattern = "main"
ci-checks = ["Test", "Test Docker"]
required-approvals = 0

[[environments]]
name = "production"
[environments.production]
branches = ["main"]

[[environments]]
name = "staging"
[environments.staging]

3 changes: 1 addition & 2 deletions repos/rust-lang/calendar.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ wg-async = "maintain"
pattern = "main"
pr-required = false

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/cargo-bisect-rustc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ ehuss = "write"
pattern = "master"
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

6 changes: 2 additions & 4 deletions repos/rust-lang/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ ci-checks = ["conclusion"]
pattern = "rust-1.*"
ci-checks = ["conclusion"]

[[environments]]
name = "github-pages"
[environments.github-pages]

[[environments]]
name = "release"
[environments.release]

6 changes: 2 additions & 4 deletions repos/rust-lang/cc-rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ crates = ["cc", "find-msvc-tools"]
workflow-filename = "publish.yml"
environment = "publish"

[[environments]]
name = "github-pages"
[environments.github-pages]

[[environments]]
name = "publish"
[environments.publish]

3 changes: 1 addition & 2 deletions repos/rust-lang/cfg-if.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ bots = []
[access.teams]
crate-maintainers = 'maintain'

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/chalk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ bots = ["rustbot"]
[access.teams]
types = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/ci-mirrors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ pattern = "main"
ci-checks = ["Build finished"]
dismiss-stale-review = true

[[environments]]
name = "upload"
[environments.upload]

3 changes: 1 addition & 2 deletions repos/rust-lang/cmake-rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ pattern = "master"
ci-checks = ['success']
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/compiler-team.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ types = "write"
pattern = "master"
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/const-eval.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ bots = []
[access.teams]
wg-const-eval = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

6 changes: 2 additions & 4 deletions repos/rust-lang/crates.io.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ bots = ["renovate", "rustbot", "heroku-deploy-access"]
[access.teams]
crates-io = "write"

[[environments]]
name = "crates-io"
[environments.crates-io]

[[environments]]
name = "staging-crates-io"
[environments.staging-crates-io]

3 changes: 1 addition & 2 deletions repos/rust-lang/crates_io_og_image.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ pattern = "main"
required-approvals = 0
pr-required = false

[[environments]]
name = "release"
[environments.release]

3 changes: 1 addition & 2 deletions repos/rust-lang/dyn-upcasting-coercion-initiative.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ bots = []
[access.teams]
project-dyn-upcasting = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/edition-guide.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ pattern = "master"
ci-checks = ["Success gate"]
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/enzyme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ pr-required = false
pattern = "master"
pr-required = false

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/flate2-rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ crate-maintainers = 'maintain'
[[branch-protections]]
pattern = 'main'

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/fls.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ spec-contributors = "triage"
pattern = "main"
ci-checks = ["CI finished"]

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/futures-rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ wg-async = "write"
pattern = "master"
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/generic-associated-types-initiative.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ bots = []
[access.teams]
project-generic-associated-types = "write"

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/getopts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ bots = []
[access.teams]
crate-maintainers = 'maintain'

[[environments]]
name = "github-pages"
[environments.github-pages]

3 changes: 1 addition & 2 deletions repos/rust-lang/gha-self-hosted.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ infra = "write"
pattern = "main"
ci-checks = ["CI finished"]

[[environments]]
name = "upload"
[environments.upload]

3 changes: 1 addition & 2 deletions repos/rust-lang/git2-rs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ pattern = "master"
ci-checks = ["Success gate"]
required-approvals = 0

[[environments]]
name = "github-pages"
[environments.github-pages]

Loading