Skip to content

add validation: if trusted publishing is defined, corresponding environment should exist #2140

@marcoieni

Description

@marcoieni

if a repo toml file contains:

[[crates-io-publishing]]
crates = ["crate_name"]
workflow-filename = "release.yml"
environment = "publish"

check that it also contain the corresponding environment:

[[environments]]
name = "publish"

note that publish needs to match.

Example PR where we missed this: #2139

Metadata

Metadata

Assignees

Labels

E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions