GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update GitHub Management as Code · probe-lab/github-mgmt@5160def

This repository was archived by the owner on Sep 26, 2025. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • actions/git-config-user
      • action.yml
    • workflows
      • upgrade.yml
      • upgrade_reusable.yml
  • README.md
  • docs
    • EXAMPLE.yml
    • HOWTOS.md
  • scripts
    • __tests__/__resources__
      • files
        • README.md
      • github
        • default.yml
      • terraform
        • terraform.tfstate
    • src
      • utils.ts
  • terraform
    • bootstrap
      • aws.tf
    • locals_override.tf
    • resources_override.tf
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/actions/git-config-user/action.yml‎

Copy file name to clipboardExpand all lines: .github/actions/git-config-user/action.yml
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ description: Configure git user
44
runs:
55
using: composite
66
steps:
7-
- run: |
7+
- if: github.event_name == 'workflow_dispatch'
8+
run: |
89
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com>"
910
git config --global user.name "${GITHUB_ACTOR}"
1011
shell: bash
12+
- if: github.event_name != 'workflow_dispatch'
13+
run: |
14+
git config --global user.name "github-actions[bot]"
15+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
Collapse file

‎.github/workflows/upgrade.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/upgrade.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
upgrade:
13-
uses: protocol/github-mgmt-template/.github/workflows/upgrade_reusable.yml@master
13+
uses: pl-strflt/github-mgmt-template/.github/workflows/upgrade_reusable.yml@master
1414
with:
1515
ref: inputs.ref
1616
secrets:
Collapse file

‎.github/workflows/upgrade_reusable.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/upgrade_reusable.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Checkout GitHub Management template
3535
uses: actions/checkout@v3
3636
with:
37-
repository: protocol/github-mgmt-template
37+
repository: pl-strflt/github-mgmt-template
3838
path: github-mgmt-template
3939
ref: ${{ github.event.inputs.ref }}
4040
- name: Checkout GitHub Management
Collapse file

‎README.md‎

Copy file name to clipboard
+20-7Lines changed: 20 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
1-
# GitHub Management via Terraform: Template
1+
<div align="center">
22

3-
This repository is meant to serve as a template for creating new repositories responsible for managing GitHub configuration as code with Terraform. It provides an opinionated way to manage GitHub configuration without following the Terraform usage guidelines to the letter. It was designed with managing multiple, medium to large sized GitHub organisations in mind and that is exactly what it is/is going to be optimised for.
3+
![Management Banner](https://github.com/pl-strflt/github-mgmt-template/assets/6688074/15b2101a-149a-4556-a1b5-497b50d77813)
44

5-
**IMPORTANT**: Having write access to GitHub Management repository can be as powerful as having admin access to the organizations managed by that repository.
5+
# GitHub Management as Code
66

7-
To learn more, check out:
8-
- [What is GitHub Management and how does it work?](docs/ABOUT.md)
9-
- [How to set up GitHub Management?](docs/SETUP.md)
10-
- [How to work with GitHub Management?](docs/HOWTOS.md)
7+
A robust template for managing GitHub configurations as code via Pull Requests. Designed with the effective administration of multiple medium to large-sized GitHub organizations in mind.
8+
9+
</div>
10+
11+
## Importance of Access Control
12+
13+
**NOTE**: Possessing write access to the GitHub Management repository can equate to having administrative privileges over the organizations managed by that repository. Please exercise caution and ensure proper access control measures.
14+
15+
## Dive Deeper
16+
17+
- Learn more about [what GitHub Management is and how it works](docs/ABOUT.md).
18+
- Get started with [setting up GitHub Management](docs/SETUP.md).
19+
- Uncover [how to effectively utilize GitHub Management](docs/HOWTOS.md).
20+
21+
## Active Users
22+
23+
A broad range of diverse organizations are already leveraging our GitHub Management solution via Pull Request Workflow. You can find a comprehensive list of these organizations on our [GitHub Management Router repository](https://github.com/pl-strflt/github-mgmt-router). This list showcases the versatility and effectiveness of our GitHub Management system. Our solution can be tailored to meet your unique requirements, driving efficiency and streamlined GitHub organization management.
Collapse file

‎docs/EXAMPLE.yml‎

Copy file name to clipboardExpand all lines: docs/EXAMPLE.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ repositories: # This group defines repositories (https://registry.terraform.io/p
7474
default_branch: master
7575
delete_branch_on_merge: false
7676
description: GitHub Management
77-
homepage_url: https://github.com/protocol/github-mgmt-template
77+
homepage_url: https://github.com/pl-strflt/github-mgmt-template
7878
is_template: false
7979
vulnerability_alerts: false
8080
archive_on_destroy: true
@@ -87,7 +87,7 @@ repositories: # This group defines repositories (https://registry.terraform.io/p
8787
branch: master
8888
path: /docs
8989
template:
90-
owner: protocol
90+
owner: pl-strflt
9191
repository: github-mgmt-template
9292
topics:
9393
- github
Collapse file

‎docs/HOWTOS.md‎

Copy file name to clipboardExpand all lines: docs/HOWTOS.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
*Example*
1313

14-
I want to invite `galargh` as an admin to `protocol` organization through GitHub Management.
14+
I want to invite `galargh` as an admin to `pl-strflt` organization through GitHub Management.
1515

1616
I ensure the YAML configuration file has the following entry:
1717
```yaml
@@ -29,7 +29,7 @@ I push my changes to a new branch and create a PR. An admin reviews the PR and m
2929
3030
*Example*
3131
32-
I want to demote `galargh` from being an `admin` of `protocol` organization to a regular `member` through GitHub Management.
32+
I want to demote `galargh` from being an `admin` of `pl-strflt` organization to a regular `member` through GitHub Management.
3333

3434
I change the entry for `galargh` in the YAML configuration file from:
3535
```yaml
@@ -54,7 +54,7 @@ I push my changes to a new branch and create a PR. An admin reviews the PR and m
5454

5555
*Example*
5656

57-
I want to be able to configure who the member of the `protocol` organization is through GitHub Management.
57+
I want to be able to configure who the member of the `pl-strflt` organization is through GitHub Management.
5858

5959
I add `github_membership` to `resource_types` array in [terraform/locals_override.tf](../terraform/locals_override.tf). I push my changes to a new branch and create a PR. An admin reviews the PR and merges the PR if everything looks OK. Then, they synchronize GitHub Management with GitHub configuration.
6060

@@ -67,7 +67,7 @@ I add `github_membership` to `resource_types` array in [terraform/locals_overrid
6767

6868
*Example*
6969

70-
I do not want to configure the roles of `protocol` organization members through GitHub Management anymore.
70+
I do not want to configure the roles of `pl-strflt` organization members through GitHub Management anymore.
7171

7272
I ensure that `terraform/resources_override.tf` contains the following entry:
7373
```tf
Collapse file

‎scripts/__tests__/__resources__/files/README.md‎

Copy file name to clipboardExpand all lines: scripts/__tests__/__resources__/files/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GitHub Management via Terraform: pl-strflt
22

3-
This repository is responsible for managing GitHub configuration of `pl-strflt` organisation as code with Terraform. It was created from [github-mgmt-template](https://github.com/protocol/github-mgmt-template) and it will receive updates from that repository.
3+
This repository is responsible for managing GitHub configuration of `pl-strflt` organisation as code with Terraform. It was created from [github-mgmt-template](https://github.com/pl-strflt/github-mgmt-template) and it will receive updates from that repository.
44

55
**IMPORTANT**: Having write access to GitHub Management repository can be as powerful as having admin access to the organizations managed by that repository.
66

Collapse file

‎scripts/__tests__/__resources__/github/default.yml‎

Copy file name to clipboardExpand all lines: scripts/__tests__/__resources__/github/default.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ repositories:
7878
triage:
7979
- ipdx
8080
template:
81-
owner: protocol
81+
owner: pl-strflt
8282
repository: github-mgmt-template
8383
visibility: public
8484
vulnerability_alerts: false
Collapse file

‎scripts/__tests__/__resources__/terraform/terraform.tfstate‎

Copy file name to clipboardExpand all lines: scripts/__tests__/__resources__/terraform/terraform.tfstate
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@
14091409
"svn_url": "https://github.com/pl-strflt/github-mgmt",
14101410
"template": [
14111411
{
1412-
"owner": "protocol",
1412+
"owner": "pl-strflt",
14131413
"repository": "github-mgmt-template"
14141414
}
14151415
],
@@ -1794,7 +1794,7 @@
17941794
"commit_email": "[email protected]",
17951795
"commit_message": "Update README",
17961796
"commit_sha": "ff32de62d3dd9bc01a2dabd8439d413e8a250dfe",
1797-
"content": "# GitHub Management via Terraform: pl-strflt\n\nThis repository is responsible for managing GitHub configuration of `pl-strflt` organisation as code with Terraform. It was created from [github-mgmt-template](https://github.com/protocol/github-mgmt-template) and it will receive updates from that repository.\n\n**IMPORTANT**: Having write access to GitHub Management repository can be as powerful as having admin access to the organizations managed by that repository.\n\n*NOTE*: Because we don't have merge queue functionality enabled for the repository yet, after a merge, wait for the `Apply` and `Update` workflows to complete before merging any other PRs.\n\nTo learn more, check out:\n- [What is GitHub Management and how does it work?](docs/ABOUT.md)\n- [How to set up GitHub Management?](docs/SETUP.md)\n- [How to work with GitHub Management?](docs/HOWTOS.md)\n",
1797+
"content": "# GitHub Management via Terraform: pl-strflt\n\nThis repository is responsible for managing GitHub configuration of `pl-strflt` organisation as code with Terraform. It was created from [github-mgmt-template](https://github.com/pl-strflt/github-mgmt-template) and it will receive updates from that repository.\n\n**IMPORTANT**: Having write access to GitHub Management repository can be as powerful as having admin access to the organizations managed by that repository.\n\n*NOTE*: Because we don't have merge queue functionality enabled for the repository yet, after a merge, wait for the `Apply` and `Update` workflows to complete before merging any other PRs.\n\nTo learn more, check out:\n- [What is GitHub Management and how does it work?](docs/ABOUT.md)\n- [How to set up GitHub Management?](docs/SETUP.md)\n- [How to work with GitHub Management?](docs/HOWTOS.md)\n",
17981798
"file": "README.md",
17991799
"id": "github-mgmt/README.md",
18001800
"overwrite_on_create": false,
Collapse file

‎scripts/src/utils.ts‎

Copy file name to clipboardExpand all lines: scripts/src/utils.ts
+23Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,26 @@ export function yamlify(value: any): YAML.ParsedNode {
1515
}
1616
return node
1717
}
18+
19+
export function globToRegex(globPattern: string): RegExp {
20+
const regexPattern = globPattern
21+
.split('')
22+
.map(char => {
23+
if (char === '*') {
24+
return '.*'
25+
} else if (char === '?') {
26+
return '.'
27+
} else if (
28+
['.', '\\', '+', '(', ')', '[', ']', '{', '}', '|', '^', '$'].includes(
29+
char
30+
)
31+
) {
32+
return `\\${char}`
33+
} else {
34+
return char
35+
}
36+
})
37+
.join('')
38+
39+
return new RegExp(`^${regexPattern}$`)
40+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.