Skip to content

MGMT-23354: Skip labels, branch protection and collaborators for archived repos#54

Closed
jhernand wants to merge 1 commit intoosac-project:mainfrom
jhernand:avoid_github_changes_to_archived_repositories
Closed

MGMT-23354: Skip labels, branch protection and collaborators for archived repos#54
jhernand wants to merge 1 commit intoosac-project:mainfrom
jhernand:avoid_github_changes_to_archived_repositories

Conversation

@jhernand
Copy link
Copy Markdown
Contributor

@jhernand jhernand commented Mar 5, 2026

GitHub's API rejects modifications to issue labels, branch protection rules and repository collaborators on archived repositories. This was causing tofu apply to fail after the repositories were archived.

Skip those resources when var.archived is true so that archiving a repository no longer breaks the apply pipeline.

Related: https://issues.redhat.com/browse/MGMT-23354
Related: https://github.com/osac-project/github-config/actions/runs/22688648883/job/65778204077#step:7:191

…ived repos

GitHub's API rejects modifications to issue labels, branch protection
rules and repository collaborators on archived repositories. This was
causing `tofu apply` to fail after the repositories were archived.

Skip those resources when `var.archived` is true so that archiving a
repository no longer breaks the apply pipeline.

Related: https://issues.redhat.com/browse/MGMT-23354
Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>
@jhernand
Copy link
Copy Markdown
Contributor Author

jhernand commented Mar 5, 2026

Not needed, the archived projects have been removed from management.

@jhernand jhernand closed this Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant