An open API service indexing awesome lists of open source software.

https://github.com/m0nsterrr/.github

Github meta repository, contains automation/workflows/standard configs used across my repositories.
https://github.com/m0nsterrr/.github

Last synced: 4 months ago
JSON representation

Github meta repository, contains automation/workflows/standard configs used across my repositories.

Awesome Lists containing this project

README

        

## Requirements

- uv or devcontainer

Create a fine-grained GitHub token with permissions for all repositories or some specific repositories with the following permissions:

- Administration (Read/Write)
- Contents (Read/Write)
- Issues (Read/Write) for labels
- Workflows (Read/Write) for GitHub actionss

To prevents accidental deletion of Github repository, this ressource is marked as protected and require a manual deletion.

## Run

```sh
export GITHUB_TOKEN=YYYYYYYYYYYYYY
export PULUMI_CONFIG_PASSPHRASE=XXXXXXXXXXX
pulumi login --local
pulumi stack select
pulumi refresh
pulumi up
```

### Create a stack
```sh
pulumi stack init
```

### Import an existing repository

```sh
pulumi import github:index/repository:Repository --parent urn:pulumi:prod::.github::pkg:index:GitRepositoryComponent::
```

### Delete a ressource

```sh
pulumi stack -u
pulumi state delete 'urn:XXXXXXXX'
```

# WIP

It's currently not possible to set some repository settings

In `settings > actions`:
- `Approval for running fork pull request workflows from contributors` must be set to `Require approval for all external contributors`
- In `Workflow permissions`, `Allow GitHub Actions to create and approve pull requests` must be ticked ([Github PR](https://github.com/integrations/terraform-provider-github/pull/2309))

It's currently not possible to set some user settings

In `settings > installations`
- Add the needed Github apps to your repositories ([Github PR](https://github.com/integrations/terraform-provider-github/pull/2469))