Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jkribeiro/gh-update-secrets-visibility

PHP helper script to include new repositories for an organization secret
https://github.com/jkribeiro/gh-update-secrets-visibility

Last synced: 2 days ago
JSON representation

PHP helper script to include new repositories for an organization secret

Awesome Lists containing this project

README

        

# GitHub update secrets visibility

PHP helper script to include new repositories for an organization secret when the visibility for repository access is set to `selected`.

GitHub API [related docs](https://docs.github.com/en/rest/reference/actions#set-selected-repositories-for-an-organization-secret).

## Usage
Run `composer install`

Create a config file `config.yml` in the root folder with the following format:
```
org:
pat: ''
secrets:
-
-
-
repos_file:
```

Create a text file containing a list of repositories to be included in the secrets list.

Run the command to execute the script: `./run`