From #cleanup we archive a repository by marking it {nav Read-Only} but that does not prevent it from being replicated to GitHub. Once a repository is archived in Gerrit, I don't think there is much point in replicating it to GitHub.
The replication plugin would only replicate repositories that have the {nav READ} permission set for the special authentication group {nav mediawiki-replication}:
```
lang=yaml,name=hieradata/common/profile/gerrit.yaml
profile::gerrit::replication:
github:
url: 'git@github.com:wikimedia/${name}'
authGroup: 'mediawiki-replication'
```
The permission is granted from [[ https://gerrit.wikimedia.org/r/admin/repos/All-Projects,access | All-Projects.git ]]:
```
name=project.config,lang=ini
[access "refs/*"]
read = group mediawiki-replication
```
Thus tentatively, we can create a new permission repository {nav All-Archived-Project} which would take away the {nav READ} permission from {nav mediawiki-replication} group by creating an access rule {nav BLOCK}. Then when we archive projects, we would reparent them to that {nav All-Archived-Project} and they will no more be replicated to GitHub.